Advertisement
Guest User

Untitled

a guest
Aug 7th, 2015
13,251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 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. F9::oosCommand()
  26. F4::remaining()
  27. F5::itemLevel()
  28. F6::hideout()
  29.  
  30. logoutCommand(){
  31. Run cports.exe /close * * * * PathOfExile.exe
  32. }
  33.  
  34. oosCommand(){
  35. IfWinActive Path of Exile
  36. {
  37. BlockInput On
  38. SendInput, {Enter}
  39. Sleep 2
  40. SendInput, {/}oos
  41. SendInput, {Enter}
  42. BlockInput Off
  43. }
  44. return
  45. }
  46.  
  47. remaining(){
  48. IfWinActive Path of Exile
  49. {
  50. BlockInput On
  51. SendInput, {Enter}
  52. Sleep 2
  53. SendInput, {/}remaining
  54. SendInput, {Enter}
  55. BlockInput Off
  56. }
  57. return
  58. }
  59.  
  60. itemlevel(){
  61. IfWinActive Path of Exile
  62. {
  63. BlockInput On
  64. SendInput, {Enter}
  65. Sleep 2
  66. SendInput, {/}itemlevel
  67. SendInput, {Enter}
  68. BlockInput Off
  69. }
  70. return
  71. }
  72.  
  73. hideout(){
  74. IfWinActive Path of Exile
  75. {
  76. BlockInput On
  77. SendInput, {Enter}
  78. Sleep 2
  79. SendInput, {/}hideout
  80. SendInput, {Enter}
  81. BlockInput Off
  82. }
  83. return
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement