#AddMessage() can't run in weakauras

6 messages · Page 1 of 1 (latest)

austere pawn
#

I have some weakauras triger code:

if aura_env.config["ChatFrame"] then
    local i=1
    while _G["ChatFrame"..i] do
        _G["ChatFrame"..i]:AddMessage("ChatFrame idx="..i)
    i=i+1
    end
end

This code doesn't work properly. BugSack says "attempt to call method 'AddMessage' (a nil value)".

For test I create a new aura and add simple code:

DEFAULT_CHAT_FRAME:AddMessage('123')

and weakauras report "WeakAuras: Warning for unknown aura: Forbidden function or table: DEFAULT CHAT FRAME"

So what am I doing wrong?

drowsy vapor
#

your weakauras is utterly outdated

austere pawn
drowsy vapor
#

thats the wrong code block, and you cant interact with the chatframe in weakauras. if at all use print. or just think about using the default weakauras options to print.

austere pawn
somber dragon
#

chat frames were blocked in 5.6