Last active
April 9, 2020 12:39
-
-
Save orblazer/3263d2eaa8a1f42ca8b95e34351c5309 to your computer and use it in GitHub Desktop.
PoE Flasks macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;---------------------------------------------------------------------- | |
; PoE Flasks macro for AutoHotKey | |
; Inspiration : https://github.com/JoelStanford/PoEAutoFlask/blob/master/PoEAutoFlask.ahk | |
;---------------------------------------------------------------------- | |
#IfWinActive Path of Exile | |
#SingleInstance force | |
#NoEnv | |
#Warn | |
#Persistent | |
; Configure the input of potion bellow (keep empty for disable) | |
; For delay don't go bellow 50 (risk of ban, default value is recommended) | |
Potion1 = 1 | |
Potion1Delay = 99 | |
Potion2 = 2 | |
Potion2Delay = 99 | |
Potion3 = 3 | |
Potion3Delay = 99 | |
Potion4 = 4 | |
Potion4Delay = 99 | |
Potion5 = 5 | |
Potion5Delay = 99 | |
; Change `XButton1` for change key (keys: https://www.autohotkey.com/docs/KeyList.htm) | |
*XButton1:: | |
; Use potion 1 | |
if (Potion1 != "") | |
{ | |
Send %Potion1% | |
Random, VariableDelay, -%Potion1Delay%, %Potion1Delay% | |
Sleep, %VariableDelay% | |
} | |
; Use potion 2 | |
if (Potion2 != "") | |
{ | |
Send %Potion2% | |
Random, VariableDelay, -%Potion2Delay%, %Potion2Delay% | |
Sleep, %VariableDelay% | |
} | |
; Use potion 3 | |
if (Potion3 != "") | |
{ | |
Send %Potion3% | |
Random, VariableDelay, -%Potion3Delay%, %Potion3Delay% | |
Sleep, %VariableDelay% | |
} | |
; Use potion 4 | |
if (Potion4 != "") | |
{ | |
Send %Potion4% | |
Random, VariableDelay, -%Potion4Delay%, %Potion4Delay% | |
Sleep, %VariableDelay% | |
} | |
; Use potion 5 | |
if (Potion5 != "") | |
{ | |
Send %Potion5% | |
Random, VariableDelay, -%Potion5Delay%, %Potion5Delay% | |
Sleep, %VariableDelay% | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment