Hi i am Dual Boxing a Warrior with a mage.

Can someone explain to me
how to set up a macro

That while my Warrior is tanking several mobs
my mage will cast frost bolt on his target?

and how can i use the Macro for the mage, while on the warrior?

THanks for the help