Path of Exile (PoE) Auto Flask Macro

Post gaming related scripts
joNDel
Posts: 4
Joined: 08 Apr 2019, 09:35
Facebook: joelstanford
GitHub: joelstanford

Path of Exile (PoE) Auto Flask Macro

Post by joNDel » 08 Apr 2019, 09:47

I have created an automatic flask use macro for Path of Exile (PoE). It allows you to set the duration of each flask (0 to disable) and allows you to add a buff to be automatically kept active, as well (such as Blood Rage). The macro can easily be enabled/disabled from within PoE and only sends keystrokes while in combat (note, this operation would need to be modified for an "always on" style such as an RF Build). The default uses the mouse Right Button for sensing attacks, but can easily be changed to support any attack key, such as "q".

This is pretty much a setup and forget it macro for flask usage. Anytime you enter combat, using the defined attack key, your flasks will begin to trigger and they will each be used again based on the flasks individual duration.

You can find the full source for the script on github at: https://github.com/JoelStanford/PoEAutoFlask.

yeetedtheyeeter
Posts: 1
Joined: 03 Jun 2019, 16:21

Re: Path of Exile (PoE) Auto Flask Macro

Post by yeetedtheyeeter » 04 Jun 2019, 03:56

Amazing work man. I like GGG, but I am not trying to keep track of my flasks when playing Flicker Strike lol. One question though since I have basically no knowledge of AHK, would I be able to use the Right Mouse Button, and using the scroll wheel button to activate the auto flask macro? Since my RMB is Flicker Strike, and my scroll wheel button is Blade Flurry. If not that is okay, thank you.

joNDel
Posts: 4
Joined: 08 Apr 2019, 09:35
Facebook: joelstanford
GitHub: joelstanford

Re: Path of Exile (PoE) Auto Flask Macro

Post by joNDel » 05 Jun 2019, 07:57

Yea, that’s a very simple change. I’m in a meeting at work, so can’t look up the keycode for the middle bouse button, but I can do it i later today. I’ll send another reply here with the change to make to the file.

joNDel
Posts: 4
Joined: 08 Apr 2019, 09:35
Facebook: joelstanford
GitHub: joelstanford

Re: Path of Exile (PoE) Auto Flask Macro

Post by joNDel » 08 Jun 2019, 07:49

I have updated the post on GitHub with documentation that tells you how to change which mouse button to use to activate the macro. It's a very simple change in the code - basically, I currently use "Rbutton" for Right Click activation. You can change that to "MButton" and now the macro will trigger based on using the middle mouse button. You could also use the Left mouse button by changing to "LButton". I also updated the post with some additional inventory management features, such as moving a large block of items from inventory to stash or vice versa.

tysrhyne
Posts: 1
Joined: 13 Jun 2019, 00:34

Re: Path of Exile (PoE) Auto Flask Macro

Post by tysrhyne » 13 Jun 2019, 00:43

i set the times in ms, but when i go to run it, it will only work for 1 map then i must close and re-start the script, then also it has a small white box that shows on screen when running ( kinda new to this so i have no idea what im doing)

joNDel
Posts: 4
Joined: 08 Apr 2019, 09:35
Facebook: joelstanford
GitHub: joelstanford

Re: Path of Exile (PoE) Auto Flask Macro

Post by joNDel » 13 Jun 2019, 05:56

after loading the macro, you always have to alt+f12 to enable it (do again to disable the macro). Once enabled, it should ALWAYS run until you disable it.

sdkyron
Posts: 40
Joined: 06 Aug 2018, 00:57

Re: Path of Exile (PoE) Auto Flask Macro

Post by sdkyron » 03 Jan 2020, 14:37

Where exactly in the code can i change what keys are used for flasks/pots.

As weird as it may seem, i use numpad 1 to 5

Lunast
Posts: 2
Joined: 31 May 2020, 00:12

Re: Path of Exile (PoE) Auto Flask Macro

Post by Lunast » 31 May 2020, 00:16

Not working for me anymore since the last PoE update (Vulkan) sadly :(

ButterZ
Posts: 5
Joined: 23 Feb 2019, 18:05

Re: Path of Exile (PoE) Auto Flask Macro

Post by ButterZ » 08 Jun 2020, 10:59

Lunast wrote:
31 May 2020, 00:16
Not working for me anymore since the last PoE update (Vulkan) sadly :(
Try this

Code: Select all

~1::
    SendInput 12345

Lunast
Posts: 2
Joined: 31 May 2020, 00:12

Re: Path of Exile (PoE) Auto Flask Macro

Post by Lunast » 13 Jun 2020, 10:47

It's working again since last update but now it dont show the "on/off" tooltip :think:

Krut0n
Posts: 1
Joined: 21 Jun 2020, 00:18

Re: Path of Exile (PoE) Auto Flask Macro

Post by Krut0n » 21 Jun 2020, 00:23

Is there a way to turn off the hover white box that displays "UseFlasks On" "UseFlasks Off" when activating the script with the alt+f12? I can't seem to find anything in the script file unless this is just a AHK thing. I play in Windowed Fullscreen because of Trade Companion Macro so maybe that is why its showing where is it would normally just be in the background?

Almaz_case
Posts: 1
Joined: 22 Jun 2020, 15:21

Re: Path of Exile (PoE) Auto Flask Macro

Post by Almaz_case » 22 Jun 2020, 15:24

I've problems with buffauto. It doesn't work. Flasks are normal. But buff - not. Do you have any ideas how fix it?

shadowfuri
Posts: 1
Joined: 15 Sep 2016, 22:47

Re: Path of Exile (PoE) Auto Flask Macro

Post by shadowfuri » 11 Jul 2020, 22:01

Auto flasks not working for me despite using the default right click attack key. Anybody else have the same problem?

Kriptic
Posts: 2
Joined: 22 Sep 2020, 01:30

Re: Path of Exile (PoE) Auto Flask Macro

Post by Kriptic » 22 Sep 2020, 01:33

Krut0n wrote:
21 Jun 2020, 00:23
Is there a way to turn off the hover white box that displays "UseFlasks On" "UseFlasks Off" when activating the script with the alt+f12? I can't seem to find anything in the script file unless this is just a AHK thing. I play in Windowed Fullscreen because of Trade Companion Macro so maybe that is why its showing where is it would normally just be in the background?
Tooltip line "ToolTip, UseFlasks Off" to "ToolTip, "

Kriptic
Posts: 2
Joined: 22 Sep 2020, 01:30

Re: Path of Exile (PoE) Auto Flask Macro

Post by Kriptic » 22 Sep 2020, 01:34

shadowfuri wrote:
11 Jul 2020, 22:01
Auto flasks not working for me despite using the default right click attack key. Anybody else have the same problem?
Make sure to enable the macro with Alt+F12

Kage34
Posts: 1
Joined: 22 Sep 2020, 21:43

Re: Path of Exile (PoE) Auto Flask Macro

Post by Kage34 » 22 Sep 2020, 21:47

I have been having issues with a finger I injured recently and moved my main skill to W is there a way to set this up so that I can replace W with the mouse button?

Eldo47
Posts: 1
Joined: 16 Jan 2021, 13:15

Re: Path of Exile (PoE) Auto Flask Macro

Post by Eldo47 » 16 Jan 2021, 13:19

Hello, thank you for creating this! When changing the primary attack button, you have listed LButton, RButton, and MButton. However, I have a Logitech G502 mouse and use one of the side buttons for my primary attack. PoE logs it as Mouse 5 in the input settings. How would I change this in the script?

Thank you!

bonifacio
Posts: 1
Joined: 13 Dec 2020, 20:37

Re: Path of Exile (PoE) Auto Flask Macro

Post by bonifacio » 21 Jan 2021, 21:24

Eldo47 wrote:
16 Jan 2021, 13:19
Hello, thank you for creating this! When changing the primary attack button, you have listed LButton, RButton, and MButton. However, I have a Logitech G502 mouse and use one of the side buttons for my primary attack. PoE logs it as Mouse 5 in the input settings. How would I change this in the script?

Thank you!
XButton1
XButton2

Try those. Just guessing.

Hellequin87
Posts: 1
Joined: 19 Apr 2021, 15:25

Re: Path of Exile (PoE) Auto Flask Macro

Post by Hellequin87 » 19 Apr 2021, 15:32

Hello thanks for this cript. I have a problem though.

When using "q" as primary attack key only the flasks will trigger.

the key section looks like this:

Code: Select all

~q::
	; pass-thru and capture when the last attack (Right click) was done
	; we also track if the mouse button is being held down for continuous attack(s) and/or channelling skills
	HoldRightClick := true
	LastRightClick := A_TickCount
	return

~q up::
	; pass-thru and release the right mouse button
	HoldRightClick := false
	return
[Mod edit: [code][/code] tags added.]

i would love for this to work :)

FastDoge
Posts: 1
Joined: 29 Apr 2021, 21:31

Re: Path of Exile (PoE) Auto Flask Macro

Post by FastDoge » 29 Apr 2021, 21:37

Great script, ty.
Is it possible to modify the script/code to add a macro key that will activate a flask multiple times with one press? Like press Xbutton2 to activate "1" three times rapidly, to use hp pot three times in quick succession. Sorry i got no coding background.

edit: nvm i think i actually figured it out lol.

Post Reply

Return to “Gaming”