Advertisement
DevTricks

Фоновый цикл с остановкой, случайное время

Sep 14th, 2022 (edited)
1,226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. F1::
  2. #Persistent
  3. SetTimer, Tools, 660000 ;660000 миллисекунд = 11 минут
  4. Send, Гонка{enter}
  5. return
  6.  
  7. F2:: ;Останавливаем таймер
  8. SetTimer, Tools, off
  9. return
  10.  
  11. Tools:
  12. Random, rand, 1000, 20000
  13. Sleep, %rand%
  14. Send, Гонка{enter}
  15. Return
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement