View Single Post
08/12/14, 08:28 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,011
OK, this is like the answer I had expected. Too bad :-( Thanks for your input!

Maybe someone has tested this already:
At which time do the events EVENT_CHAT_CHANNEL_JOIN and EVENT_CHAT_CHANNEL_LEAVE fire? If you join a specific chat channel (like "zone" or "zonefr"), and if you leave it by changing to another channel?

If this would be the case one could try to get the currently active control of the chat tabs (if any variable is telling us that the tab is currently selected. Maybe it is :HasFocus() ) and save the channel name upon change to a table.
I assume that we can read the channelname somehow...
When the even EVENT_CHAT_CHANNEL_JOIN is fired the active chat tab could be determined again and the saved channelname will be added to the beginning of send messages, or will be put into the edit control where we start to type the text).

Many maybes :-) I'll try it as I find the time.
  Reply With Quote