Public paste
Undefined
By: Guest | Date: Feb 27 2014 05:10 | Format: None | Expires: never | Size: 398 B | Hits: 763

  1. Global $fPaused = False
  2.  
  3. HotKeySet("^!x", "MyExit")
  4. HotKeySet("h", "TogglePause")
  5.  
  6. $x = 1010
  7. $y = 604
  8. $i = 0
  9.  
  10. Func TogglePause()
  11.     $fPaused = Not $fPaused
  12.     While $fPaused
  13.         Sleep(100)
  14.         ToolTip('Script is "Paused"', 0, 0)
  15.     WEnd
  16.     ToolTip("")
  17. EndFunc
  18.  
  19. While $i <= 10
  20.     MouseClick("left", $x, $y, 1)
  21. WEnd
  22.  
  23. Func MyExit()
  24.   Exit
  25. EndFunc
  26.