Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-23-10, 07:29 PM   #1
nehegeb
A Murloc Raider
Join Date: Nov 2009
Posts: 9
useful Macro for checking UI-Items

Hi there!

Here is a useful Macro, for getting the name of a UI frame:

/script DEFAULT_CHAT_FRAME:AddMessage( GetMouseFocus():GetName() );

Just create that Macro and put it into the actionbar. Point your mousecursor over a particular frame an press the actionbars number for that Macro. The frames name will be post into the chatframe.

But now I have got a question:

I need a Macro for getting the texturepath from the texture my mouse is over. The following Macro doesn't work but I don't know why:
/script DEFAULT_CHAT_FRAME:AddMessage( GetMouseFocus():GetTexture() );
All I found out so far is that 'GetTexture()' seems to not work with 'GetMouseFocus()'. But why?
The following works:
/script DEFAULT_CHAT_FRAME:AddMessage( ActionButton1Icon:GetTexture() );
This Macro gets the texturepath of the icon in actionbar1.

I hope that Macro helps you and someone can help me!
greetings, nehegeb
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » useful Macro for checking UI-Items


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