Advertisement
Guest User

Untitled

a guest
Mar 18th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #SingleInstance force
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5. SetTitleMatchMode 3
  6.  
  7. SetTimer, oosLoop, 10000
  8.  
  9. SetKeyDelay, 0
  10.  
  11. oosLoop:
  12. IfWinActive, Path of Exile ahk_class Direct3DWindowClass
  13. Send, {Enter}/oos{Enter}
  14. return
  15.  
  16. SetTimer process_watcher, 2000 ; check every 2 seconds
  17. #IfWinActive, Path of Exile ahk_class Direct3DWindowClass
  18.  
  19. process_watcher:
  20. Process Exist, Client.exe ; check to see if PoE is still open
  21. If ErrorLevel = 0
  22. Exitapp ; if it's closed, exit the .ahk file
  23.  
  24. F5::Pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement