What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [IDEA] PM Sender

[IDEA] PM Sender
Author: Message:
leachy08
Junior Member
**


Posts: 35
Joined: Jul 2006
RE: [IDEA] PM Sender
I believe it is very simple

code:
function OnEvent_ChatWndSendMessage (ChatWnd, Message) {
    Msg = Message.split(" ")
    if (Msg[0] == "/sendpm") {
        if (Msg[1].length != 0 && Msg[2].length != 0) {
            Messenger.OpenChat(Msg[1]);
            var Windows = Messenger.CurrentChats;
            for(e = new Enumerator(Windows); !e.atEnd(); e.moveNext()) {
                var ChatWindow = e.item().Contacts;
                if (ChatWindow.Contacts.Count == 1) {
                    for(f = new Enumerator(ChatWindow.Contacts); !f.atEnd(); f.moveNext()) {
                        var Contact = f.item();
                        if (Contact.Email == Msg[1]) {
                            for (i=2; i < Msg.length; i++) {
                                MessageToSend = MessageToSend + Msg[i];
                            }
                            e.item().SendMessage(MessageToSend);
                        }
                    }
                }
            }
        }
    }
}

I believe this is probally broke somewhere but its on the write lines. I will fix it when i get time prob 2nite. I will also look into writing some sort of window where you can select a contact in the the current chat and send him a message with a more user friendly mannor.

Edit:
Sorry for the format. I did tab it of course but the post format has taken it out.

This post was edited on 08-11-2006 at 02:44 PM by leachy08.
08-11-2006 02:44 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[IDEA] PM Sender - by craig2k5 on 08-10-2006 at 01:32 AM
RE: [IDEA] PM Sender - by RaceProUK on 08-10-2006 at 08:44 AM
RE: [IDEA] PM Sender - by problem-solver-wlm on 08-10-2006 at 12:36 PM
RE: [IDEA] PM Sender - by craig2k5 on 08-10-2006 at 12:39 PM
RE: [IDEA] PM Sender - by problem-solver-wlm on 08-10-2006 at 12:43 PM
RE: [IDEA] PM Sender - by lrac522 on 08-10-2006 at 01:39 PM
RE: [IDEA] PM Sender - by Oxy on 08-10-2006 at 01:46 PM
RE: [IDEA] PM Sender - by problem-solver-wlm on 08-10-2006 at 02:20 PM
RE: [IDEA] PM Sender - by Spunky on 08-10-2006 at 04:52 PM
RE: [IDEA] PM Sender - by Touch on 08-10-2006 at 05:03 PM
RE: [IDEA] PM Sender - by Chancer on 08-10-2006 at 07:40 PM
RE: [IDEA] PM Sender - by Spunky on 08-10-2006 at 07:41 PM
RE: RE: [IDEA] PM Sender - by Mike on 08-11-2006 at 02:28 PM
RE: [IDEA] PM Sender - by 4penguino on 08-11-2006 at 02:06 PM
RE: [IDEA] PM Sender - by Felu on 08-11-2006 at 02:10 PM
RE: [IDEA] PM Sender - by leachy08 on 08-11-2006 at 02:44 PM
RE: [IDEA] PM Sender - by RaceProUK on 08-11-2006 at 03:26 PM
RE: [IDEA] PM Sender - by matty on 08-11-2006 at 04:01 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