ME» üIE TOOLBAR ON/OFFÙFŸ°Ìâ@ªà?ÿðËâ@e\Ô(éÿï?àËâ@€ùâ@Z******************************************************************************************TZ******************************************************************************************T5A USEFUL INTERNET EXPLORER MACRO: IE TOOLBAR ON/OFFTZ******************************************************************************************TZ******************************************************************************************T**********************TOVariables: N99=dummy, in this case it stores color under screen/mouse locationT**********************TTPWhen I first began using MacroExpress, I spent several days trying to write codeTUto automatically download web page info. It never worked because the content buttons TMI was trying to click on kept moving around. I figured the web site designersTMhad put in random number generators to move menus and buttons around slightlyT>so a program like MacroExpress would not work. I was stupid - TUI finally noticed that the toolbars that were present when I was manually surfing theTMwebsite were not the same as when I was using MacroExpress to surf and click.TTQThus I wrote this macro to control the Internet Explorer toolbars that are loadedTXwhenever I use MacroExpress to control Internet Explorer (aka IE). It was not as easy asTcI thought. IE turns toolbars on and off via a click, but there is NO "clear all" or "turn off all" TRtoolbars (as far as I know). Thus you can't "reset" the toolbars before you begin.TTUThe only way to check if the toolbars are present, especially since you can customizeTXtoolbar appearances, is to see if the toolbar has a check-mark beside it in the menu barTY (i.e., View-Toolbars...). Testing this required a "color test" looking for the presence TNof the check-mark. This was further complicated by the fact that IE highlightsTYthe toolbar choices by "color inverting" the menu item. While I prefer using the keyboardTZfor MacroExpress commands, the only way I could perform this check is by using the mouse.TThus...TT*******************T6End of "history", here's the documentation and code...T*******************TTATHIS MACRO REQUIRES YOU CALL IT OR INCORPORATE IT INTO CODE WHERET9AN INTERNET EXPLORER WINDOW IS ALREADY OPEN AND MAXIMIZEDT;ON YOUR PRIMARY COMPUTER SCREEN (i.e. starting pixel 0, 0).TT9I CALL THIS MACRO EVERY TIME I USE MACROEXPRESS WITH IE !TTVIn Internet Explorer ("IE"), every macro is dependant on which TOOLBARS are loaded IFTNyou use the mouse to click on items (I prefer to use keyboard short-cut keys).TY(i.e., screen locations of buttons, colors, whatever, will change if a toolbar is presentT in one window but not another)TTAThis macro tests for a check mark next to the following TOOLBARS:T: ( if not present, it turns 'em on )TC NOTE: ASSuMEs toolbars across top of screen.TT1) STANDARD BUTTONST2) ADDRESS BARTY note: LINK is skipped because, in my IE, it is appended to the address barT3) YAHOO "COMPANION" TOOLBARTP note: DELETE THE CODE FOR THIS IS YOU DON'T HAVE ANY "CUSTOM TOOLBARS"TQ note: MODIFY CODE FOR ANY OTHER "CUSTOM TOOLBARS", which should appearT^ under the menu item View-Toolbars in the "4th" position after IE's defaultsTb (1=Standard Buttons, 2=Address Bar, and 3=Links, BUT it's added to address bar)TT**********************TOVariables: N99=dummy, in this case it stores color under screen/mouse locationT**********************TTNOTE:TZEither call this code via a macro call (preferred method) or copy/paste it into your code.T6Your code must first ensure the IE window is active...TJ ( the code right below does this if your IE window is already maximized )TTVactivate the IE window "manually" (especially useful, ie mandatory, for debugging)T 1TôT TF1100T0TF1100TTaPixel color/location tests depend on whether you're testing a screen location or window location,TSso I always maximize an IE window to full screen ("KISS", keep it simple stupid).T "CURRENT"TTV********************** above code should be redundant (i.e., in your calling routine)TIE TOOLBAR ON/OFFT**********************TT]In IE, mouse location X=100, Y=40 should be on the IE command "View" ( unless suppressed byTMthe website you're visiting or you're using IE's "full screen" (F11) option).T 1TdT(TMIt's prudent to pause after EVERY command... even if just for 1/10th a secondTF1100TTWI moved the mouse to 100,40 where the "View" command is located and could have clicked,T4but here's a better ALTernative... (pun intended)...TH(moving a mouse helps you or other users follow what the macro is doing)TT3bring up the "View" command option, choose ToolbarsTv = VIEWT(DTvT(UTF1100T t = TOOLBARSTtTF1100T_ABOVE: MacroExpress can "outrun" IE, so put EVERY "Text type" into a separate, "delayed" line.TT0NOTE above: You could access these commands by: T> vts = hold down ALT key and hit View-Toolbar-StandardTHexcept you don't know if the toolbar is already on or not. The vts T0will turn off the Standard toolbar if it's on...T7 BUT VICE VERSA TOO!!! ERGO, do a color testTTJOnce you've opened the command line menu via View-Toolbar, screen positionTJX=234, Y=60 should be where the Standard Toolbar would have a check markT? ( just under "e" in command line "Help" ).TTKIf the mouse is NOT moved to 234,60 first, the color may not be "inverted".T 1TêTIf not, type "s" for "Standard buttons" to turn on the toolbarT‰Nc-116777215TsTF1100T†TF1100TT5*****************************************************T,Now repeat for "Address bar" (pixel Y=77)T5*****************************************************TPCode below is same as above except for "Y location" and the "Text Type" command.T 1TdT(TF1100T(DTvT(UTF1100TtTF1100T 1TêTMTF1100TÚ000234000077bTF1100T‰Nc-116777215TaTF1100T†TF1100TT5*****************************************************T