#SingleInstance, Ignore iCounter:=0 While, True { If !A_IsSuspended And DllCall("GetKeyState", "Int", 2, "Short")<-126 { PixelSearch,,, 629, 512, 649, 490, 12191508, 20 If !ErrorLevel { MouseClick Sleep, 150 } } Else If A_IsSuspended { ToolTip, % "counter: "++iCounter "`rscript is ""paused""", 0, 0 Sleep, 250 IfEqual, A_IsSuspended, % False, ToolTip } IfEqual, A_IsSuspended, % False, Sleep, 50 } F3:: F2:: Suspend KeyWait, % A_ThisHotkey IfEqual, A_ThisHotkey, % "F3", Return IfEqual, A_ThisHotkey, % "F2", ExitApp |