I think I found a bug while I was scripting in Messenger Plus. A part of my script is supposed to check my status and if my status is away any conversation message that is received after that is supposed to get an auto response, problem is that it won't send the message. I check the debugger and it says "ChatWnd" is undefined. Any ideas?
code:function OnEvent_ChatWndReceiveMessage(chatwin,origin,txt_msg,kind)
{
var msg_back="";
switch (Messenger.MyStatus)
{
case '6': msg_back="Be aware that I haven't been on my computer for longer than 10 minutes and may not respond!";
break;
case '7': msg_back="I'm away and probably won't respond!";
break;
default : msg_back="";
break;
}
if (response_text=="")
{
if (msg_back!="")
{
ChatWnd.SendMessage(msg_back);
}
}
else
{
ChatWnd.SendMessage(response_text);
}
}
quote:Originally posted by a0369
ok, I made the change and it worked, I thought that was a global object
nope, because you could have many chat windows open at once. It would suck if you only manipulate the chat window that sent the message in each plus! function.