Site hosted by Angelfire.com: Build your free website today!
Blog Tools
Edit your Blog
Build a Blog
RSS Feed
View Profile
« March 2006 »
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Entries by Topic
All topics  «
Macromedia
You are not logged in. Log in
Scripts
Saturday, 18 March 2006
Auto scrolling and auto stumbling
Install AutoHotKey.
Copy/paste the script code below into a text file. Change the ending of the file from .txt to .ahk. Change the position of the stumble button to where your button is. You can place the .ahk file where ever you want, as long as it's on your computer. When you wish to run the script just doubleclick the file, and than push hotkey F9.
Script looks like this.

F9:: ;Expl. Hotkey F9 starts stumbling
Loop 30
{
MouseClick, left, 470, 35 ;Expl. my x/y coordinates for stumbe button
Mousemove, 1010, 650
loop 5
{
Send {Down}
sleep 300
}

sleep 2000
Loop 5
{

loop 15
{
MouseGetPos, xpos
Send {Down}
Send {Down}
Send {down}
Send {down}

if(xpos>1020 )
{
break
}

if(xpos<920 )
{
break
}

sleep 200
}

loop ;Expl. Waits here if cursor in 90% leftmost screen spcace
{
if(xpos < 920)
{
sleep 2000
MouseGetPos, xpos
}
else ;Expl. Continues if you move to 10% rightmost screen space
break
}

if(xpos>1020 ) ;Expl. Stumbles if you press space or hit right screen border
{
break
}
KeyWait, Space, D, T2 ;explanation, press space-->stumble(an alternative stumble)
if(ErrorLevel = 0)
{
break
}

}

}

Posted by planet/macro_examples at 5:12 AM CET
Post Comment | Permalink | Share This Post

Newer | Latest | Older