Thread: Set Focus
View Single Post
06-27-11, 01:14 PM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,931
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.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818