Code: Select all
[/#MaxThreadsPerHotkey 2 ; Allow multiple instances of the same hotkey to interrupt each other
StopLoop := false ; Initialize the variable
F2:: {
StopLoop := false ; Reset the variable when F2 is pressed
Loop
{
if (StopLoop)
break
Sleep 2000
Click 404, 174 ;1 icon
Sleep 2000
Click 1363, 174 ;2icon
Sleep 33000
Click 56, 243 ;1 spel
Sleep 2000
Click 1020, 235 ;2 spel
Sleep 9000
Click 139, 151 ;1 play
Sleep 2000
Click 1103, 138 ;2 play
Sleep 1500000
Click 63, 21 ;1 stäng ner
Sleep 2000
Click 1022, 18 ;2 stäng ner
}
return
}
F6::StopLoop := true
]