What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] ChatWndReceiveMessage function

[Help] ChatWndReceiveMessage function
Author: Message:
SquidWeed
New Member
*


Posts: 5
Joined: Jan 2009
O.P. RE: [Help] ChatWndReceiveMessage function
function OnEvent_Initialize(MessengerStart)
{
activated=false;
contact=null;
msgs=new Array("bb","cya","have fun","good night");
}

function OnEvent_ChatWndSendMessage(ChatWnd,Message){
    if(Message == "*bye*"){
        activated=!activated;
        var e = new Enumerator(ChatWnd.Contacts);
        contact=e.item();
    }
}
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind){
    if(activated && contact.Name==Origin) ChatWnd.SendMessage(msgs[Math.ceil(Math.random()*msgs.length)]);
}
01-28-2009 11:15 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] ChatWndReceiveMessage function - by SquidWeed on 01-28-2009 at 10:52 PM
RE: [Help] ChatWndReceiveMessage function - by djdannyp on 01-28-2009 at 11:04 PM
RE: [Help] ChatWndReceiveMessage function - by SquidWeed on 01-28-2009 at 11:15 PM
RE: [Help] ChatWndReceiveMessage function - by Matti on 01-29-2009 at 04:50 PM
RE: [Help] ChatWndReceiveMessage function - by Spunky on 01-29-2009 at 06:31 PM
RE: [Help] ChatWndReceiveMessage function - by SquidWeed on 01-30-2009 at 02:44 AM
RE: [Help] ChatWndReceiveMessage function - by SquidWeed on 02-17-2009 at 10:33 PM
RE: [Help] ChatWndReceiveMessage function - by SquidWeed on 02-22-2009 at 11:34 PM
RE: [Help] ChatWndReceiveMessage function - by matty on 02-22-2009 at 11:49 PM


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