Nop don't work ...
; Prompt the user to run the script - Yes / No
Local $answer = MsgBox(4, "you want to go afk?", "To help you grind. Run?")
; Check the users answer to the prompt
; If "No" was clicked then exit the script
If $answer = 7 Then
MsgBox(0, "AutoIt", "OK. Bye!")
Exit
EndIf
; Press Esc to terminate script, 5 to run and pause
Global $UnPaused
HotKeySet("{5}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
While 5
Sleep(100)
ToolTip("Script is Paused",0,0)
WEnd
Func TogglePause()
$UnPaused = NOT $UnPaused
While $UnPaused
ToolTip("Sending...",0,0)
Send("1")
Send("2")
WEnd
EndFunc
Func Terminate()
Exit 0
EndFunc
; Finished!
Now its work