Untitled

By Mungo Capybara, 10 Years ago, written in Plain Text, viewed 589 times.
URL http://pb.stoleyour.com/view/0cecb2e5 Embed
Download Paste or View RawExpand paste to full width of browser
  1. #MaxThreadsPerHotkey 3
  2. F12::  ; 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.     ; The next four lines are the action you want to repeat (update them to suit your preferences):
  14.     Send {Numpad0 down}
  15.     Sleep 100
  16.     Send {Numpad0 up}
  17.    
  18.     ; But leave the rest below unchanged.
  19.     if not KeepWinZRunning  ; The user signaled the loop to stop by pressing Win-Z again.
  20.         break  ; Break out of this loop.
  21. }
  22. KeepWinZRunning := false  ; Reset in preparation for the next press of this hotkey.
  23. return

Reply to "Untitled"

Here you can reply to the paste above