Code: Select all
URL GOTO=javascript:window.scrollBy(0,20000)
You can also use the TAG command to scroll the required part of the web page into view. To do this, simply click on any kind of (HTML) text next to or below the area where you want to send the DirectScreen command to.
The recorded macro looks like this:
http://www.iopus.com/download/forum/win ... croll1.png
VERSION BUILD=5010115
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.123flashchat.com/
WAIT SECONDS=2
SIZE X=559 Y=465
TAG POS=1 TYPE=FONT ATTR=TXT:Pure<SP>Java<SP>Chat<SP>Server
DS CMD=CLICK X=203 Y=383 CONTENT=
DS CMD=CLICK X=203 Y=383 CONTENT=It<SP>works!
WAIT SECONDS=2
If you play the macro, it opens the web page...
...the TAG command scrolls into the middle of the web page (where the Flash chat applet is)
...and the DS CMD=CLICK command works:
Note: The screenshots contain the WINCLICK command, which was the predecessor of the more powerful DirectScreen Technology. The same technique works for all DirectScreen commands.