Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.00 KB | None | 0 0
  1. ; Author: Sky Masterson of the tirade clan in defiance 2050
  2. ; Date: 8/24/2019
  3. ; To use install autoit, open this script in the editor, and click tools->go or hit F5 to run.
  4. ; The number 4 is used to toggle sending fast mouse clicks.  Be aware that if you try and type
  5. ; '4' while this script is running it will prevent the character from reaching it's destination.
  6. ; the character can be changed to anything, I've found 4 to be the most convient.  To end the
  7. ; program hit the page down key.
  8.  
  9.  
  10. Global $running = 0 ; script starts paused
  11. Global $delay = 12000; 3.3 hours and then the script terminates so it doesn't run forever
  12.  
  13. HotKeySet("{PGDN}", "close")
  14. HotKeySet("4", "toggle")
  15.  
  16. ; Main program. All is done with "interupts"
  17. While 1
  18.    Sleep ($delay)
  19. WEnd
  20.  
  21. Func close()
  22.    Exit
  23. EndFunc
  24.  
  25. Func play()
  26.    While $running
  27.       MouseClick("left")
  28.       Sleep(50)
  29.    WEnd
  30. EndFunc
  31.  
  32. Func toggle()
  33.    If $running == 0 Then
  34.       $running = 1
  35.       Call("play")
  36.    Else
  37.       $running = 0;
  38.    EndIf
  39. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement