Code: Select all
-----------------Gui--------------
Gui, Show , w150 h150, Window title
; here you have a text, button and edit
Gui, Add, Text, x10 y10 w90 Center,Bot
Gui, Add, Button, x10 y52 w90 h20 vFIRSTBUTTON ,Walk
Gui, Add, Button, x10 y90 w90 h20 vSECONDBUTTON ,Click
Return
ButtonWalk:
Loop,
{Send {Right Down}
sleep, 4000
Send {Right Up} ; IMO this should be included. YMMV
Send {Left Down}
sleep, 2000
Send {Left Up} ; IMO this should be included. YMMV
}
return
ButtonClick:
Loop
{
click
sleep 2000
click
sleep 2000
}
return
GuiClose:
ExitApp