What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » OnEvent_ChatWndSendMessage help

OnEvent_ChatWndSendMessage help
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: OnEvent_ChatWndSendMessage help
Your error
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
    {
    var e = Message;
    if(e.substring(0,4) == '!say')
    {
    var x = Message.splice(5);
    MsgPlus.DisplayToast("",x);
    }

    }



Solution
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
var e = Message;
if(e.substring(0,4) == '!say');
{
var x = Message.substring(5);
MsgPlus.DisplayToast("",x);
}
}



My way of doing it
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if (Message.substr(0,4) == '!say');
    {
        var m = Message.substr(5);
    MsgPlus.DisplayToast('Test', m);
    }
}

This post was edited on 08-05-2006 at 08:49 AM by Felu.
08-05-2006 08:38 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
OnEvent_ChatWndSendMessage help - by Rmstn1580 on 08-05-2006 at 08:31 AM
RE: OnEvent_ChatWndSendMessage help - by Felu on 08-05-2006 at 08:38 AM
RE: OnEvent_ChatWndSendMessage help - by Rmstn1580 on 08-05-2006 at 08:41 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On