-
Notifications
You must be signed in to change notification settings - Fork 29
/
flask.ahk
31 lines (24 loc) · 1.27 KB
/
flask.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;Lines starting with a ; are comments and are not part of the actual script.
;If you want to deactivate a flask press(e.g. because it is your hp flask) simply add a ; to the start of the line
;this line makes the script only work when Path of Exile is the active window
#IfWinActive, ahk_class POEWindowClass
;The key (or mouse button) you press to activate the script. For a list of supported "keys" and combinations, see https://autohotkey.com/docs/Hotkeys.htm
;XButton1 = "Back"-Button on my mouse. For a complete list of special keys, see https://autohotkey.com/docs/KeyList.htm
XButton1::
{
;Initialize random delays between 57 and 114 ms (arbitrary values, may be changed)
random, delay2, 57, 114
random, delay3, 57, 114
random, delay4, 57, 114
random, delay5, 57, 114
;send, 1 ;simulates the keypress of the 1 button. If you use another button, change it!
;sleep, %delay2%
send, 2 ;simulates the keypress of the 2 button. If you use another button, change it!
sleep, %delay3%
send, 3 ;simulates the keypress of the 3 button. If you use another button, change it!
sleep, %delay4%
send, 4 ;simulates the keypress of the 4 button. If you use another button, change it!
sleep, %delay5%
send, 5 ;simulates the keypress of the 5 button. If you use another button, change it!
}
return