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

Code:
#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.

Code:
#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.
__________________
Xrystal is offline