View Single Post
08/12/14, 08:44 AM   #4
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Originally Posted by Baertram View Post
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.
Install bug eater and type "/zgoo events" into the chat. You get a nice overview of every event that is fired and can even look at the parameters.

As far as I can tell those Events are no longer used. There were used for the old beta version API wich allowed custom channels (and addons changing the channel, via CreateChannel, JoinChannel). The respective functions have been removed.
  Reply With Quote