This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 18th, 2013  |  syntax: None  |  size: 0.71 KB  |  views: 67  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data