Global $sHeight = @DesktopHeight
Global $sWidth = @DesktopWidth
Global $UnPaused
HotKeySet("+1","_TogglePause") ; Press Shift+1 to start script
HotKeySet("+2", "_Terminate") ; Press Shift+2 to terminate script
MsgBox(64, "=)")
While 1 ; Loop 1
Sleep(100) ; Waiting for function call. Pressing the Start hotkey ends this loop
ToolTip('Autobuyer paused. Press SHIFT+1 to resume/pause or SHIFT+2 to terminate.',0,0)
WEnd
Func _TogglePause()
ToolTip('Autobuyer has started. Press SHIFT+1 to pause or SHIFT+2 to terminate.',0,0)
$UnPaused = NOT $UnPaused
While $UnPaused ; Loop 2
MouseClick("left", 1189, 720, 1, 25)
MouseClick("left", 1073, 720, 1, 17)
MouseClick("left", 687, 447, 1, 2)
MouseClick("left", 1217, 682, 1, 30)
MouseClick("left", 1258, 686, 1, 80)
WEnd
EndFunc
Func _Terminate()
If MsgBox(4, 'Do you want to exit?', 'Click Yes to exit, or No to continue') = 6 Then Exit
EndFunc ;==>_Pause