Autohotkey HELP

visitor123

Regular Member
Joined
May 5, 2022
Messages
419
Reaction score
203
This script starts when i press F3, but there is no button to pause this script, how can i make it pause when i press F3 again?

F3::
Macro1:
Loop
{
Click, Left, 1
Sleep, 10
Sleep, 10000
}
Return
 
Code:
loopOn := false

F3::
if (loopOn) {
    loopOn := false
    SetTimer, Macro1, Off
} else {
    loopOn := true
    SetTimer, Macro1, 10000
}
Return

Macro1:
Click, Left, 1
Sleep, 10
Return
 
Back
Top