This is going to cast buffs in keys 0 and 9. Edit the delays as you need. Make sure to enable driver otherwise this might not work.
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