0x0049

clicker

May 12th, 2015
266
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MaxThreadsPerHotkey 3
  2. #z::  ; Win+Z hotkey (change this hotkey to suit your preferences).
  3. #MaxThreadsPerHotkey 1
  4. if KeepWinZRunning  ; This means an underlying thread is already running the loop below.
  5. {
  6.     KeepWinZRunning := false  ; Signal that thread's loop to stop.
  7.     return  ; End this thread so that the one underneath will resume and see the change made by the line above.
  8. }
  9. ; Otherwise:
  10. KeepWinZRunning := true
  11. Loop
  12. {
  13.     MouseClick
  14.     if not KeepWinZRunning  ; The user signaled the loop to stop by pressing Win-Z again.
  15.         break  ; Break out of this loop.
  16. }
  17. KeepWinZRunning := false  ; Reset in preparation for the next press of this hotkey.
  18. return
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment