aggixx

Untitled

Jul 24th, 2015
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #NoEnv
  2. #SingleInstance force
  3. SendMode Play ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6. IfNotExist, cports.exe
  7. {
  8. UrlDownloadToFile, http://lutbot.com/ahk/cports.exe, cports.exe
  9. if ErrorLevel
  10. MsgBox, There was a problem downloading cports.exe
  11. UrlDownloadToFile, http://lutbot.com/ahk/cports.chm, cports.chm
  12. if ErrorLevel
  13. MsgBox, There was a problem downloading cports.chm
  14. UrlDownloadToFile, http://lutbot.com/ahk/readme.txt, readme.txt
  15. if ErrorLevel
  16. MsgBox, There was a problem downloading readme.txt
  17. }
  18.  
  19. #IfWinActive, Path of Exile
  20.  
  21. ~NumpadEnd::Send {Numpad1}
  22. ~NumpadDown::Send {Numpad2}
  23. ~NumpadPgDn::Send {Numpad3}
  24. ~NumpadLeft::Send {Numpad4}
  25. ~NumpadClear:
  26. {
  27. Send {Numpad5}
  28. Remaining()
  29. return
  30. }
  31. ~NumpadRight::Send {Numpad6}
  32. ~NumpadHome::Send {Numpad7}
  33. ~NumpadUp::Send {Numpad8}
  34. ~NumpadPgUp::Send {Numpad9}
  35. ~NumpadIns::Send {Numpad0}
  36.  
  37. ~XButton2::Logout()
  38. ~Numpad5::Remaining()
  39. ~NumpadMult::Teleport()
  40.  
  41. return
  42.  
  43. Logout() {
  44. Run cports.exe /close * * * * PathOfExile.exe
  45. return
  46. }
  47.  
  48. Remaining() {
  49. BlockInput On
  50. SendInput, {Enter}
  51. Sleep, 20
  52. SendInput, {/}remaining
  53. SendInput, {Enter}
  54. BlockInput Off
  55. return
  56. }
  57.  
  58. Teleport() {
  59. BlockInput On
  60. SendInput, {Enter}
  61. Sleep, 20
  62. SendInput, {/}hideout
  63. SendInput, {Enter}
  64. BlockInput Off
  65. return
  66. }
Advertisement
Add Comment
Please, Sign In to add comment