SHOW:
|
|
- or go back to the newest paste.
| 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}
|
| 21 | + | |
| 22 | - | ~NumpadDown::Send {Numpad2}
|
| 22 | + | |
| 23 | - | ~NumpadPgDn::Send {Numpad3}
|
| 23 | + | |
| 24 | - | ~NumpadLeft::Send {Numpad4}
|
| 24 | + | |
| 25 | - | ~NumpadClear: |
| 25 | + | |
| 26 | Run cports.exe /close * * * * PathOfExile.exe | |
| 27 | - | Send {Numpad5}
|
| 27 | + | |
| 28 | - | Remaining() |
| 28 | + | |
| 29 | ||
| 30 | Remaining() {
| |
| 31 | - | ~NumpadRight::Send {Numpad6}
|
| 31 | + | |
| 32 | - | ~NumpadHome::Send {Numpad7}
|
| 32 | + | |
| 33 | - | ~NumpadUp::Send {Numpad8}
|
| 33 | + | |
| 34 | - | ~NumpadPgUp::Send {Numpad9}
|
| 34 | + | |
| 35 | - | ~NumpadIns::Send {Numpad0}
|
| 35 | + | |
| 36 | BlockInput Off | |
| 37 | return | |
| 38 | - | ~Numpad5::Remaining() |
| 38 | + | |
| 39 | - | ~NumpadMult::Teleport() |
| 39 | + | |
| 40 | Teleport() {
| |
| 41 | BlockInput On | |
| 42 | SendInput, {Enter}
| |
| 43 | Sleep, 20 | |
| 44 | SendInput, {/}hideout
| |
| 45 | SendInput, {Enter}
| |
| 46 | BlockInput Off | |
| 47 | return | |
| 48 | } |