Demo-JavaScriptMenu
From iMacros
This macro show how to use the Mouseover event of the WINCLICK command to handle javascript dialogs.
This demo works with the following page: http://www.iopus.com/imacros/demo/v5/javascript-menu/index.htm
Macro Code
VERSION BUILD=4130610 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://www.iopus.com/imacros/demo/v5/javascript%2Dmenu/ SIZE X=885 Y=609 WAIT SECONDS=3 'Some Javascript menu systems have built-in timeouts, so it is important the the mouse over 'commands are sent with the right timing (not too slow and not too fast) 'For most menu systems REPLAYSPEED 2 (medium speed) seems to work well! SET !REPLAYSPEED MEDIUM 'Use three clicks for menu level 1 because the menu has a small delay 'before it reacts to the mouse (nice for humans, not so nice for machines) WINCLICK X=50 Y=175 CONTENT=EVENT:MOUSEOVER WINCLICK X=50 Y=176 CONTENT=EVENT:MOUSEOVER WINCLICK X=50 Y=175 CONTENT=EVENT:MOUSEOVER 'Level 2 WINCLICK X=58 Y=197 CONTENT=EVENT:MOUSEOVER 'Level 3 WINCLICK X=191 Y=202 CONTENT=EVENT:MOUSEOVER 'We reached the menu item to click WINCLICK X=336 Y=249 CONTENT= 'Done with menu, speed up replay SET !REPLAYSPEED FAST WAIT SECONDS=3 TAG POS=1 TYPE=STRONG ATTR=TXT:Back<SP>to<SP>Javascript*
