Chat system messages on/off macro
I'm using this in two of my macros:
Code:
/run ChatConfigOtherSettingsSystemCheckBox1Check:Click() |
Presumably:
Lua Code:
and: Lua Code:
|
Perfect. Thanks again, Fizzle.
|
There is one problem that I've encountered. I have to open the frame where the system messages check box is located after I login before the macros will work. After I open it once, the macros will work fine until I log out. I'm guessing the frame doesn't "exist" for the macros to work until it is opened? Any solution to this problem that you know of?
|
For both macros, after /run and before if insert
Lua Code:
This will change the setting for the "General" chat frame. Each chat frame has it's own list of channels and messages it listens for. 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. |
That took care of it. Much appreciated!
|
Quote:
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 |
All times are GMT -6. The time now is 05:07 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI