Poe Def flasks on defense/evasion(smoke)/protection of the elements. Use on buttons 3/4/5. Leave 1 for HP. And the second one is for mana.
Download the program (Download) and go to the macro editor
press the button «Open file»
and select the downloaded file
assign a macro to a key and run the program