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
}
}
}