Originally Posted by Fizzlemizz
A better method would probably be to add/remove the message event(s) from the chatframe rather than doing the Click() thing especially if you wanted to do this for all chat frames.
|
This is what the checkbox ends up calling
Code:
/run if not ChatFrame_ContainsMessageGroup(ChatFrame1,"SYSTEM") then ChatFrame_AddMessageGroup(ChatFrame1,"SYSTEM");end
Code:
/run if ChatFrame_ContainsMessageGroup(ChatFrame1,"SYSTEM") then ChatFrame_RemoveMessageGroup(ChatFrame1,"SYSTEM");end
ChatFrame1 is the default general chatframe,
ChatFrame2 is the CombatLog. This goes up to
ChatFrame10, which is the maximum number of them (there are some exceptions) you can have.