tabnation

script watcher

Jan 1st, 2025 (edited)
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. SetTitleMatchMode, 2
  2. DetectHiddenWindows, On
  3.  
  4. f1:: ;start timer
  5. settimer, runcheck, 900000
  6. return
  7.  
  8. runcheck:
  9. RunWait, cmd /c ""C:\Windows\System32\wbem\WMIC.exe" Path win32_process Where "Name='AutoHotkey.exe'" Get CommandLine | clip", , Hide
  10. If CLIPBOARD contains Fisch Macro V12.ahk
  11. {
  12. ;its running so do nothing
  13. }
  14. Else
  15. {
  16. Run, C:\Users\Thom\Desktop\Fisch Macro V12.ahk ;change this to script file name and path
  17. sleep 5000
  18. send p ;starts the autofish
  19. }
  20. Return
Advertisement
Add Comment
Please, Sign In to add comment