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

Pages: (2): « First « 1 [ 2 ] Last »
[request] report feature (paying $$$)
Author: Message:
icepick66
Junior Member
**

Avatar
Uhh Radiation

Posts: 37
Reputation: 1
35 / Male / –
Joined: Jun 2006
O.P. RE: [request] report feature (paying $$$)
ok, thanks :D

just one last request:
if im offline it will send a message anyway, but could you get it to check if im offline

then message the person who said report saying im offline and ill get the message when i sign in so their will be some delay in a responce

edit:
sent the money :p

This post was edited on 08-23-2006 at 10:38 AM by icepick66.
[Image: icepickquiet.jpg]
08-23-2006 10:35 AM
Profile E-Mail PM Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: RE: [request] report feature (paying $$$)
I haven't tested this out, but it should work.

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
    {
    Pattern = /^report/i
    OK = Pattern.exec(Message)
    if (OK) {
    var Contacts = ChatWnd.Contacts
    var e = new Enumerator(Contacts);
    for (; !e.atEnd(); e.moveNext())
    {
    var Contact = e.item();
    Debug.Trace(" " + Contact.Email);
    if (Origin === Contact.Name) {
    var From = "From : " + Contact.Email;
    var Message = "\n\nMessage : " + Message;
    var MyStatus = GetContact("myemail");
    if (MyStatus.Status === '1')
        Messenger.OpenChat(Contact.Email).SendMessage("ENTEROFFLINEMESSAGE");
    else
        Messenger.OpenChat("myemail").SendMessage(From+Message);
    return;
    }
    }
    }
    }
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
08-23-2006 11:43 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [request] report feature (paying $$$)
quote:
Originally posted by icepick66
£2.50 each (around $5 each) to cookie and saralk
thanks guys pm me ur paypal
Buy a big ice cream :p (or if you must, donate it to saralk too ;))
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-24-2006 09:05 AM
Profile PM Find Quote Report
icepick66
Junior Member
**

Avatar
Uhh Radiation

Posts: 37
Reputation: 1
35 / Male / –
Joined: Jun 2006
O.P. RE: [request] report feature (paying $$$)
ok, yum :D
im getting the error with the online checker script
code:
Error: Object expected.
       Line: 15. Code: -2146823281.
[Image: icepickquiet.jpg]
08-24-2006 10:33 AM
Profile E-Mail PM Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: [request] report feature (paying $$$)
code:
    function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
    {
    Pattern = /^report/i
    OK = Pattern.exec(Message)
    if (OK) {
    var Contacts = ChatWnd.Contacts
    var e = new Enumerator(Contacts);
    for (; !e.atEnd(); e.moveNext())
    {
    var Contact = e.item();
    Debug.Trace(" " + Contact.Email);
    if (Origin === Contact.Name) {
    var From = "From : " + Contact.Email;
    var Message = "\n\nMessage : " + Message;
    var Contacts = Messenger.MyContacts;
    if (Contacts.GetContact("YOUREMAIL").Status === '1')
        Messenger.OpenChat(Contact.Email).SendMessage("ENTEROFFLINEMESSAGE");
    else
        Messenger.OpenChat("myemail").SendMessage(From+Message);
    return;
    }
    }
    }
    }
try that.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
08-24-2006 10:48 AM
Profile PM Find Quote Report
icepick66
Junior Member
**

Avatar
Uhh Radiation

Posts: 37
Reputation: 1
35 / Male / –
Joined: Jun 2006
O.P. RE: [request] report feature (paying $$$)
sorry :(
code:
Error: Object required.
       Line: 16. Code: -2146827864.
Function OnEvent_ChatWndReceiveMessage returned an error. Code: -2147352567
[Image: icepickquiet.jpg]
08-24-2006 12:35 PM
Profile E-Mail PM Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: [request] report feature (paying $$$)
It wont work unless you have added yourself as a contact.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
08-24-2006 12:49 PM
Profile PM Find Quote Report
icepick66
Junior Member
**

Avatar
Uhh Radiation

Posts: 37
Reputation: 1
35 / Male / –
Joined: Jun 2006
O.P. RE: [request] report feature (paying $$$)
i have added myself(home pc's msn acc) and the bot to the bots contact list
[Image: icepickquiet.jpg]
08-24-2006 12:58 PM
Profile E-Mail PM Find Quote Report
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
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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