im makeing an update to my script and im adding a command to logme out with a command but i keep getting this error
code:
Error: Object expected (code: -2146823281)
File: brb.js. Line: 26.
Function OnEvent_ChatWndSendMessage returned an error. Code: -2147352567
what does it mean cause im new to this
here the code
code:
function notify(msg){
msg = MsgPlus.RemoveFormatCodes(msg);
MsgPlus.DisplayToast("brb", msg, "");
}
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
if(Message == "brb"){
notify("locking msn.");
MsgPlus.LockMessenger('True');
return '';
}
if(Message == '/logout'){
SendMessage('/all');
SendMessage('/close');
notify('login out.');
Signout();
}
}
sorry iv fixed it now i had to add chatwnd to sendmessage and messenger to signout