Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-17-10, 06:17 PM   #1
Elendhriel
A Deviate Faerie Dragon
Join Date: Jan 2010
Posts: 13
Shift + Click over Unitframe

I am trying to get a small script done where I can define a spell that is cast when over a Unit frame and using Shift Left Mouse Click. But I am stuck it doesn't work so far. Basically something I could do with Clique but I just need it for 2 Spells and would like a more lightweight solution for this. Basically the approach would be:

WorldFrame:HookScript("OnMouseDown", function(self, button)
if(button=="LeftButton" and IsShiftKeyDown() and UnitExists("mouseover")) then

Yeah here I am stuck tried several things .....

end
end)

Last edited by Elendhriel : 10-17-10 at 06:29 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Shift + Click over Unitframe


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off