I would be happy not to use it, but it's not my frame. this is frame for different messages, I need in only one of them. I know what the text should be in that frame, but I can't compare them...
look. frame from first post only for sample, originally it's a dialog frame (from GlueXML). I try to track "Server Down" message (then login). it's may be two types - plant text, and html text. I completely hook plant text for compare with "Server Down" string, but I can't get html text to confirm that this is exactly what I needed.
it's for "force login" function. look for code:
Code:
if AccountLoginForceLogin:GetChecked() and which then --check the need for force flag
if which == "OKAY" and text then --check GlueDialogType. plant "Server Down"
--message is a "OKAY" type
if text == LOGIN_SERVER_DOWN then --check frame text, that there is an
--exactly "server down" message
StatusDialogClick(); --cklick "ok"
AccountLogin_Login(); --login again
end
elseif which == "CONNECTION_HELP_HTML" then --html "server down" message is this type,
--but I can't check text
--from this frame, to make sure
--that this is the necessary message
AccountLogin_Login();
end
end
that's why I need it