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
34 / Male / –
Joined: Jun 2006
O.P. [request] report feature (paying $$$)
Hi, i run a server which has msn on it and its signed into a account 24/7,
i use this to provide help to users if their are expericeing trobble with the server, and basicly i want it so when a user types report [message],
(the message being the problem they are trying to comunicate with me)

it will msn my home pc's msn account with their email address and message of the user, and obiously when im offline it will send a offline message.

im expericend with scripts so dont bother with a menu

and im offering $5 mabey $10 if done quickly

thankyou
[Image: icepickquiet.jpg]
08-22-2006 11:21 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 $$$)
icepick66.

I have almost finished it. PM me for details.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
08-22-2006 12:32 PM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [request] report feature (paying $$$)
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if (Origin != Messenger.MyName){
var e = new Enumerator(ChatWnd.Contacts);
for(; !e.atEnd(); e.moveNext())
var Contact = e.item();
var From = "From : "+Contact.Email
var Message = "\n\nMessage : "+Message
Messenger.OpenChat(YourHomeEmail).SendMessage(From+Message);//edit to your home email within quotes.
}
}

Simple code [Image: msn_tongue.gif].
And i don't want money for it [Image: xso_cheesy.gif].

This post was edited on 08-22-2006 at 12:44 PM by Felu.
08-22-2006 12:37 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [request] report feature (paying $$$)
If I understand correctly: what he asks for is a code so his bot which is run from the server 24/7, will message his personal MSN account.

If his bot is a php script or whatever (thus a full blown msn client), he is asking his request in the wrong forum.

Only if his bot and server is running on Windows and uses Windows Live Messenger itself with Plus!, a Plus! script can be used for this. Otherwise he needs php code (or in whatever language his msn client is written)....

quote:
Originally posted by -!Felu!-
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if (Origin != Messenger.MyName){
var e = new Enumerator(ChatWnd.Contacts);
for(; !e.atEnd(); e.moveNext())
var Contact = e.item();
var From = "From : "+Contact.Email
var Message = "\n\nMessage : "+Message
Messenger.OpenChat(YourHomeEmail).SendMessage(From+Message);//edit to your home email
}
}
Simple code
...but buggy code.

What your code will do is sending a message for only the last contact there is in the conversation, even if the first contact has send the message (and as such, you don't need to use the for loop, just e.moveLast() would do).

quite possible that his bot never uses multi-contact chats, but even so, the bug in that script needs to be fixed:

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
        if (Origin !== Messenger.MyName) {
                for (var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()) {   
                        var Contact = e.item();
                        if (Origin === Contact.Name) {
                                var From = "From : " + Contact.Email;
                                var Message = "\n\nMessage : " + Message;
                                Messenger.OpenChat(YourHomeEmail).SendMessage(From+Message);
                                return;
                        }
                }
        }
}

This post was edited on 08-22-2006 at 01:01 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-22-2006 12:45 PM
Profile PM Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: [request] report feature (paying $$$)
That script will forward every message, not just messages starting with report.

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) {           
Messenger.OpenChat("YOUREMAIL");
            ChatWnd.SendMessage("Message From " + Contact.Email);
            ChatWnd.SendMessage(Message);
}
        }
    }
}

quote:
Originally posted by CookieRevised
(and as such, you don't need to use the for loop, just e.moveLast() would do).

I tried using that method, but it didn't work.

Click quote to get a tabulated code.

This post was edited on 08-22-2006 at 01:05 PM by saralk.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
08-22-2006 01:01 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [request] report feature (paying $$$)
[OFF TOPIC]

quote:
Originally posted by saralk
quote:
Originally posted by CookieRevised
(and as such, you don't need to use the for loop, just e.moveLast() would do).
I tried using that method, but it didn't work.
my bad... moveLast doesn't exist (moveFirst() does though.... crappy JScript again)...

[OFF TOPIC]
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-22-2006 01:37 PM
Profile PM Find Quote Report
icepick66
Junior Member
**

Avatar
Uhh Radiation

Posts: 37
Reputation: 1
34 / Male / –
Joined: Jun 2006
O.P. RE: [request] report feature (paying $$$)
quote:
Originally posted by saralk
That script will forward every message, not just messages starting with report.

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) {           
Messenger.OpenChat("YOUREMAIL");
            ChatWnd.SendMessage("Message From " + Contact.Email);
            ChatWnd.SendMessage(Message);
}
        }
    }
}

quote:
Originally posted by CookieRevised
(and as such, you don't need to use the for loop, just e.moveLast() would do).

I tried using that method, but it didn't work.

Click quote to get a tabulated code.

Thanks saralk ill pay u £5 (around $10) as ur in the uk :p whats ur paypal?
but it just reports it to the user who types report and doesent send a msg to me :s

oh the bot is a msg plus script, its not a clever bot tho :(, just predefined answers

and finaly do you know how to auto accept added contacts?

This post was edited on 08-23-2006 at 09:24 AM by icepick66.
[Image: icepickquiet.jpg]
08-23-2006 08:54 AM
Profile E-Mail PM Find Quote Report
icepick66
Junior Member
**

Avatar
Uhh Radiation

Posts: 37
Reputation: 1
34 / Male / –
Joined: Jun 2006
O.P. RE: [request] report feature (paying $$$)
attualy i fixed it by using code from both of yours the final thing was:
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;
    Messenger.OpenChat("myemail").SendMessage(From+Message);
    return;
    }
    }
    }
    }
£2.50 each (around $5 each) to cookie and saralk
thanks guys pm me ur paypal

and finaly do you know how to auto accept added contacts?
[Image: icepickquiet.jpg]
08-23-2006 09: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 $$$)
saralk@fw6.net

auto accepting might be a bit more difficult, afaik there isn't a function that is triggered when you get the accept contact window. I'll look into it.

This post was edited on 08-23-2006 at 09:47 AM by saralk.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
08-23-2006 09:47 AM
Profile PM Find Quote Report
Sunshine
Elite Member
*****

Avatar

Posts: 5142
Reputation: 122
– / Female / Flag
Joined: Mar 2004
Status: Away
RE: [request] report feature (paying $$$)
quote:
Originally posted by icepick66
and finaly do you know how to auto accept added contacts?
I believe unticking the 2 (esp. last one, first is to allow messaging you if they are not on your list) shown in the picture below will do that.

[Image: attachment.php?pid=717758]

If you don't want to be notified then it's auto accept right? ;)

.png File Attachment: privacy.PNG (21.83 KB)
This file has been downloaded 643 time(s).

This post was edited on 08-23-2006 at 09:56 AM by Sunshine.
[Image: 25dr3o9]
08-23-2006 09:48 AM
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