Advertisement
Guest User

Untitled

a guest
Apr 16th, 2015
8,913
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. ;As always, test the logout before you run into hardcore.
  2. ;If the Logout dosn't function, you need to run the ahk script in administrator mode.
  3. ;You can compile the script then right click the resulting .exe file, > properties > compatibility > [x] Run this program as an administrator > Apply
  4. ;made by /u/lutcikaur
  5.  
  6. IfNotExist, C:\ahk
  7. {
  8. FileCreateDir, C:\ahk
  9. }
  10. SetWorkingDir, C:\ahk
  11. IfNotExist, cports.exe
  12. {
  13. UrlDownloadToFile, http://lutbot.com/ahk/cports.exe, cports.exe
  14. if ErrorLevel
  15. MsgBox, There was a problem downloading cports.exe
  16. UrlDownloadToFile, http://lutbot.com/ahk/cports.chm, cports.chm
  17. if ErrorLevel
  18. MsgBox, There was a problem downloading cports.chm
  19. UrlDownloadToFile, http://lutbot.com/ahk/readme.txt, readme.txt
  20. if ErrorLevel
  21. MsgBox, There was a problem downloading readme.txt
  22. }
  23.  
  24. F3::logoutCommand() ;
  25.  
  26.  
  27. logoutCommand(){
  28. IfWinActive Path of Exile
  29. {
  30. Run cports.exe /close * * * * PathOfExile.exe
  31. }
  32. return
  33. }
  34.  
  35. F2::
  36. SendInput, {Enter}
  37. sleep, 20
  38. SendInput, {/}itemlevel
  39. SendInput, {Enter}
  40. return
  41.  
  42. `::
  43. SendInput, {Enter}
  44. sleep, 20
  45. SendInput, {/}oos
  46. SendInput, {Enter}
  47. return
  48.  
  49. F1::
  50. SendInput, {Enter}
  51. sleep, 20
  52. SendInput, {/}remaining
  53. SendInput, {Enter}
  54. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement