Some Items can be used automatically. Like Skills, Items that can be automated are indicated with two green arrows in the upper left corner of their icons and have “Auto-use available” in their descriptions.
If a character is in the safe zone, item-use automation will not work until they leave it.
Create a new macro and write /autoplayoff in the first row.
Fill the next rows with Skills, Items and delays as you wish.
Write /autoplayon in the last row. It's necessary to enable auto-hunt back!
Then drag the macro on your shortcut bar and activate it with right-click.
If you are not going to use auto hunt function, it's not required to write /autoplayoff and /autoplayon commands in the macro content.
What is important:
* put the /delay command after /autoplayon.
If you put a delay after /autoplayon after running the macro the character will immediately join the battle. Then there will be a delay (for example, before rebuff), and then again /autoplayoff (the first line of the macro is disabling auto-hunting and rebuff).