aggixx

Untitled

Jul 24th, 2015
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ~XButton2::Logout()
  22.  
  23. return
  24.  
  25. Logout() {
  26. Run cports.exe /close * * * * PathOfExile.exe
  27. return
  28. }
  29.  
  30. Remaining() {
  31. BlockInput On
  32. SendInput, {Enter}
  33. Sleep, 20
  34. SendInput, {/}remaining
  35. SendInput, {Enter}
  36. BlockInput Off
  37. return
  38. }
  39.  
  40. Teleport() {
  41. BlockInput On
  42. SendInput, {Enter}
  43. Sleep, 20
  44. SendInput, {/}hideout
  45. SendInput, {Enter}
  46. BlockInput Off
  47. return
  48. }
Advertisement
Add Comment
Please, Sign In to add comment