View Single Post
09-27-20, 03:10 PM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Originally Posted by doofus View Post
OK, great. Now this has brought me to another (I am sure basic) subject which I am confused about. How can an addon log/copy all the messages in a chat window? For example my addons display diagnostics like,

DEFAULT_CHAT_FRAME :AddMessage("hello",0,1,0);

How can another addon read those messages? They are not SAY, not SYSTEM, not Channel anything.

I have even tried setprinthandler(newPrintHandler) did not do anything.
Have a look at something like WIM ( Wow Instant Messenger ) .. Not sure if it is up to date but I recall it keep ing a record of the chat windows. The DEFAULT_CHAT_FRAME I believe is the equivalent of ChatFrame1. I suspect what they do is make a copy of the message being received by the chat window and store it in a local table and then save that table out .. then when you log back in do the reverse to get it back into the window as if it was a new message.
__________________

Last edited by Xrystal : 09-27-20 at 03:14 PM.
  Reply With Quote