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:
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
« 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