Here is what I want to happen.
Code: Select all
F7::
Toggleplant:
toggle3 := !toggle3
Code: Select all
if toggle3
Menu, tray, Rename, Start Planting (F7), Stop Planting (F7)
else
Menu, tray, Rename, Stop Planting (F7), Start Planting (F7)
Now, after that, I want a loop to happen. A loop that lasts one hour. This is the mother loop.
There is a subloop inside the mother loop which lasts for 50seconds.
Here is what happens in the subloop:
Code: Select all
ControlSend, ahk_parent, {Blind}{right down}, ahk_exe Growtopia.exe
Sleep, %collectspeed%
ControlSend, ahk_parent, {Blind}{right up}, ahk_exe Growtopia.exe
Sleep, 50
ControlSend, ahk_parent, {Blind}{right down}, ahk_exe Growtopia.exe
Sleep, %collectspeed%
ControlSend, ahk_parent, {Blind}{right up}, ahk_exe Growtopia.exe
^ This keeps looping for 50seconds.
After the loop is over,
an action is performed. That action is:
Code: Select all
Sleep, 50
ControlSend, ahk_parent, {Blind}{left down}, ahk_exe Growtopia.exe
Sleep, 2000
ControlSend, ahk_parent, {Blind}{left up}, ahk_exe Growtopia.exe
sleep 100
ControlClick, x%tempX% y%tempY%, ahk_exe Growtopia.exe, , LEFT, 1, D
sleep 300
ControlClick, x%tempX% y%tempY%, ahk_exe Growtopia.exe, , LEFT, 1, U
sleep 1000
Can somebody help me make this?