Mana is an annoying issue in PoE 2 imo and it hurts my wrist, this tool runs in the background detecting the color changes on the mana bar and presses a key (mana flask) on reaching a certain %.
Probably not. Flask macros are not allowed by GGG. This tool takes screenshots of a chosen area of the screen to detect changes, so afaik it is not something that is detected as it does not interact with the client or files and adheres to 1 input = 1 result principle... technically.
This is made with the Wayland protocol in mind as it what I use. If used on anything else grim has to be replaced by something else. ydtool should work on x11 as well.
slurp, to get coordinates
grim, grab images from the Wayland compositor
ydtool, keyboard inputs