Guest User

Untitled

a guest
May 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #MaxThreadsPerHotkey 3
  2. #z:: ; Win+Z hotkey (change this hotkey to suit
  3.  
  4. your preferences).
  5. #MaxThreadsPerHotkey 1
  6. if KeepWinZRunning ; This means an underlying
  7.  
  8. thread is already running the loop below.
  9. {
  10. KeepWinZRunning := false ; Signal that
  11.  
  12. thread's loop to stop.
  13. return ; End this thread so that the one
  14.  
  15. underneath will resume and see the change made
  16.  
  17. by the line above.
  18. }
  19. ; Otherwise:
  20. KeepWinZRunning := true
  21. Loop
  22. {
  23. ; The next four lines are the action you
  24.  
  25. want to repeat (update them to suit your
  26.  
  27. preferences):
  28. sendinput {right}
  29. sleep 12
  30. sendinput {right}
  31. sleep 12
  32. sendinput {left}
  33. sleep 12
  34. sendinput {left}
  35. sleep 12
  36. sendinput {enter}
  37. sleep 20
  38. ; But leave the rest below unchanged.
  39. if not KeepWinZRunning ; The user signaled
  40.  
  41. the loop to stop by pressing Win-Z again.
  42. break ; Break out of this loop.
  43. }
  44. KeepWinZRunning := false ; Reset in preparation
  45.  
  46. for the next press of this hotkey.
  47. return
Add Comment
Please, Sign In to add comment