Advertisement
DevTricks

Фоновый цикл с остановкой и переключателем

Jan 28th, 2021
772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sw = 0
  2.  
  3. F1::
  4.   if (sw = 0)
  5.   {
  6.       #Persistent
  7.       SetTimer, Tools
  8.       sw = 1
  9.   }
  10.   else
  11.   {
  12.       SetTimer, Tools, off
  13.       sw = 0
  14.   }
  15. return
  16.  
  17. Tools:
  18.    Send, {Ctrl 2}
  19.     Sleep, 1000
  20. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement