Thread Tools Display Modes
06-18-07, 10:38 AM   #1
Silmano
A Murloc Raider
 
Silmano's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 9
Run some lua code on advanced hotkey?

I was wondering, how can I make an addon run a lua function or code when I hit Alt+Left Click on an item?

Do I have to change the XML file or just the LUA?

Thanks in advance!
  Reply With Quote
06-22-07, 12:50 AM   #2
Riraito
An Aku'mai Servant
 
Riraito's Avatar
Join Date: Dec 2006
Posts: 32
Code:
function yourFunction()
     if IsAltKeyDown() then
          yourCodeHere...
     end
end
__________________
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Run some lua code on advanced hotkey?


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