What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] report feature (paying $$$)

[request] report feature (paying $$$)
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: RE: [request] report feature (paying $$$)
And here is a nicer version of this all. :P
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
    var Pattern = new RegExp("^report", "i");
    var OK = Pattern.exec(Message);
    //If the message begins with "report"...
    if (OK) {
        var Contacts = ChatWnd.Contacts;
        //Loop through the participants of the chatwindow
        for (var e = new Enumerator(Contacts); !e.atEnd(); e.moveNext()) {
            var Contact = e.item();
            //If the origin matches the current contacts name...
            if (Origin == Contact.Name) {
                var Message = "From: " + Contact.Email + "\n\nMessage: " + Message;
                //If the status of the home user is Offline...
                if (Messenger.MyContacts.GetContact("home@server.com").Status == 1) {
                    Messenger.OpenChat(Contact.Email).SendMessage("Da boss is currently offline!");
                } else {
                    Messenger.OpenChat("home@server.com").SendMessage(Message);
                }
                //Ends the function to stop looking for other contact matches
                return;
            }
        }
    }
}

Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-24-2006 03:45 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request] report feature (paying $$$) - by icepick66 on 08-22-2006 at 11:21 AM
RE: [request] report feature (paying $$$) - by saralk on 08-22-2006 at 12:32 PM
RE: [request] report feature (paying $$$) - by Felu on 08-22-2006 at 12:37 PM
RE: [request] report feature (paying $$$) - by CookieRevised on 08-22-2006 at 12:45 PM
RE: [request] report feature (paying $$$) - by saralk on 08-22-2006 at 01:01 PM
RE: RE: [request] report feature (paying $$$) - by CookieRevised on 08-22-2006 at 01:37 PM
RE: [request] report feature (paying $$$) - by icepick66 on 08-23-2006 at 08:54 AM
RE: [request] report feature (paying $$$) - by icepick66 on 08-23-2006 at 09:33 AM
RE: RE: [request] report feature (paying $$$) - by saralk on 08-23-2006 at 11:43 AM
RE: RE: [request] report feature (paying $$$) - by CookieRevised on 08-24-2006 at 09:05 AM
RE: [request] report feature (paying $$$) - by saralk on 08-23-2006 at 09:47 AM
RE: [request] report feature (paying $$$) - by Sunshine on 08-23-2006 at 09:48 AM
RE: [request] report feature (paying $$$) - by icepick66 on 08-23-2006 at 10:35 AM
RE: [request] report feature (paying $$$) - by icepick66 on 08-24-2006 at 10:33 AM
RE: [request] report feature (paying $$$) - by saralk on 08-24-2006 at 10:48 AM
RE: [request] report feature (paying $$$) - by icepick66 on 08-24-2006 at 12:35 PM
RE: [request] report feature (paying $$$) - by saralk on 08-24-2006 at 12:49 PM
RE: [request] report feature (paying $$$) - by icepick66 on 08-24-2006 at 12:58 PM
RE: RE: [request] report feature (paying $$$) - by Matti on 08-24-2006 at 03:45 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