Uber Pet Macro
This macro got it's name on the WoW Hunter Forums a while back, basically this is just a one button pet control macro. This macro only requires that you have the spells
Call Pet &
Revive Pet, or simply, a Hunter's Pet. Also, this macro will use your player's Focus marker.
How the Macro works... If your pet is dead: You will cast
Revive Pet. If your pet is not summoned: You will cast
Call Pet. If you are not focused: You will focus on your target and your pet will be sent to attack it. If you are focused: You will clear focus and your pet will be recalled to follow you.
In less technical terms... If your pet is dead or missing: Your pet will be revived or summoned. If your pet is not attacking: Your pet will attack your target. If your pet is attacking: Your pet will stop attacking and return to your side. Hunter's Mark will be cast on the target
/cast [nopet] Call Pet; [target=pet, dead] Revive Pet
Code:
/cast [nopet] Call Pet; [target=pet, dead] Revive Pet
/clearfocus [target=focus, dead]
/focus [target=focus, exists] player; target
/clearfocus [target=focus, noharm]
/petattack [target=focus, exists]
/petfollow [target=focus, noexists]
/cast Hunter's Mark