Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-09-11, 12:05 PM   #1
daylesan
A Fallenroot Satyr
Join Date: Feb 2011
Posts: 22
Getting the currently active chat frame

I want to add a message into whatever chat window the user has switched to. I currently use this but "last active" isn't quite the same as the currently active one... there's probably a better way to do it.
Code:
LAST_ACTIVE_CHAT_EDIT_BOX:GetParent():AddMessage(msg)
LAST_ACTIVE_CHAT_EDIT_BOX:GetParent() returns ChatFrame# by the way

Last edited by daylesan : 04-09-11 at 12:13 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Getting the currently active chat frame


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