Quantcast WoWInterface - View Single Post - Set Focus
Thread: Set Focus
View Single Post
06-27-11, 01:14 PM   #7
nUI User and Supporter
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,074
My sheep macro was as simple as this:

#showtooltip Polymorph
/cast [button:2,@focus] Polymorph;
/focus [nobutton:2];
I'm not sure if a test for an existing focus is available but maybe the following will do what you want.

#showtooltip Polymorph
/cast [button:2,@focus] Polymorph;
/focus [nobutton:2,noexists];
/clearfocus [nobutton:2,exists];
button 2 is the right mouse, so nobutton 2 means left or other button.