Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;As always, test the logout before you run into hardcore.
- ;If the Logout dosn't function, you need to run the ahk script in administrator mode.
- ;You can compile the script then right click the resulting .exe file, > properties > compatibility > [x] Run this program as an administrator > Apply
- ;made by /u/lutcikaur
- IfNotExist, C:\ahk
- {
- FileCreateDir, C:\ahk
- }
- SetWorkingDir, C:\ahk
- IfNotExist, cports.exe
- {
- UrlDownloadToFile, http://lutbot.com/ahk/cports.exe, cports.exe
- if ErrorLevel
- MsgBox, There was a problem downloading cports.exe
- UrlDownloadToFile, http://lutbot.com/ahk/cports.chm, cports.chm
- if ErrorLevel
- MsgBox, There was a problem downloading cports.chm
- UrlDownloadToFile, http://lutbot.com/ahk/readme.txt, readme.txt
- if ErrorLevel
- MsgBox, There was a problem downloading readme.txt
- }
- F3::logoutCommand()
- F9::oosCommand()
- F4::remaining()
- F5::itemLevel()
- F6::hideout()
- logoutCommand(){
- Run cports.exe /close * * * * PathOfExile.exe
- }
- oosCommand(){
- IfWinActive Path of Exile
- {
- BlockInput On
- SendInput, {Enter}
- Sleep 2
- SendInput, {/}oos
- SendInput, {Enter}
- BlockInput Off
- }
- return
- }
- remaining(){
- IfWinActive Path of Exile
- {
- BlockInput On
- SendInput, {Enter}
- Sleep 2
- SendInput, {/}remaining
- SendInput, {Enter}
- BlockInput Off
- }
- return
- }
- itemlevel(){
- IfWinActive Path of Exile
- {
- BlockInput On
- SendInput, {Enter}
- Sleep 2
- SendInput, {/}itemlevel
- SendInput, {Enter}
- BlockInput Off
- }
- return
- }
- hideout(){
- IfWinActive Path of Exile
- {
- BlockInput On
- SendInput, {Enter}
- Sleep 2
- SendInput, {/}hideout
- SendInput, {Enter}
- BlockInput Off
- }
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement