I have a full working Afk Script but now I would like to 1. Make the script work on the background and 2. Combine two scripts into 1. At first it should press every 40 seconds some key like W,S, A and after that it should type every 30 min "Hello". Somehow its so difficult with the Control Send Script and I would like to ask you for help. Below you can see the script I wrote. I am a rookie and would aprreciate your help.
Code: Select all
#Persistent
F3::ControlSend, Edit1, test, ahk_exe WorldofWarcraft.exe
SetTimer, PressTheKey, 39000
Return
PressTheKey:
Send, {W}
Sleep 100
Send, {A}
Sleep 100
Send, {S}
Sleep 100
Return
SetTimer, PressTheKey1, 1800000
PressTheKey1:
Send, {Enter}
Send, {H}
Send, {E}
Send, {L}
Send, {L}
Send, {O}
Send, {Enter}
Return