├── README.md └── flask.ahk /README.md: -------------------------------------------------------------------------------- 1 | # PoEFlaskScript 2 | An [Autohotkey](https://autohotkey.com/) Script for using flasks in [Path of Exile](http://pathofexile.com/) 3 | 4 | Emulates keypresses on your flask keys with a short, random delay to avoid detection. 5 | To configure your keys open `flask.ahk` in any text editor and read the comments (lines beginning with `;`) 6 | 7 | ## Download 8 | [Right Click here => Save As...](https://raw.githubusercontent.com/PatrickSpemann/PoEFlaskScript/master/flask.ahk) 9 | -------------------------------------------------------------------------------- /flask.ahk: -------------------------------------------------------------------------------- 1 | ;Lines starting with a ; are comments and are not part of the actual script. 2 | ;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 3 | 4 | ;this line makes the script only work when Path of Exile is the active window 5 | #IfWinActive, ahk_class POEWindowClass 6 | 7 | ;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 8 | ;XButton1 = "Back"-Button on my mouse. For a complete list of special keys, see https://autohotkey.com/docs/KeyList.htm 9 | XButton1:: 10 | { 11 | ;Initialize random delays between 57 and 114 ms (arbitrary values, may be changed) 12 | random, delay2, 57, 114 13 | random, delay3, 57, 114 14 | random, delay4, 57, 114 15 | random, delay5, 57, 114 16 | 17 | ;send, 1 ;simulates the keypress of the 1 button. If you use another button, change it! 18 | 19 | ;sleep, %delay2% 20 | send, 2 ;simulates the keypress of the 2 button. If you use another button, change it! 21 | 22 | sleep, %delay3% 23 | send, 3 ;simulates the keypress of the 3 button. If you use another button, change it! 24 | 25 | sleep, %delay4% 26 | send, 4 ;simulates the keypress of the 4 button. If you use another button, change it! 27 | 28 | sleep, %delay5% 29 | send, 5 ;simulates the keypress of the 5 button. If you use another button, change it! 30 | } 31 | return --------------------------------------------------------------------------------