What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Messenger.MyContacts.GetContact

[Help] Messenger.MyContacts.GetContact
Author: Message:
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
RE: [Help] Messenger.MyContacts.GetContact
I'm pretty sure it's impossible to send a message in a group chat to only one person. Just open a new chat window with them ;)

Besides which, there are a few syntax errors here, I've fixed some stuff up for you. Not that it's going to be particularly useful if it is impossible.

jscript code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
    var exp=/\/Test\s(.*)/i //Regular expression of /Test email@domain.com
    if(exp.exec(Message!==null){ //If regexp matched message being sent
        var email=RegExp.$1 //Store the email for future use
        switch(email){ //Find out what the email is
            case 'email@hotmail.com': //If it's this one
                //Do stuff here
                return 'Testing'; //Send message
                break; //Stop the script here
            case 'jsmith@tardis.com': //Otherwise if it's this one
                //Do more stuff here
                return 'Testing2'; //Send a different message
                break; //Stop here
        }
    }
}

This post was edited on 04-15-2009 at 10:15 PM by ryxdp.
04-15-2009 10:14 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Messenger.MyContacts.GetContact - by Red Blood on 04-15-2009 at 08:45 PM
RE: [Help] Messenger.MyContacts.GetContact - by ryxdp on 04-15-2009 at 10:14 PM
RE: [Help] Messenger.MyContacts.GetContact - by Red Blood on 04-16-2009 at 01:06 AM
RE: [Help] Messenger.MyContacts.GetContact - by davidpolitis on 04-16-2009 at 02:27 PM
RE: [Help] Messenger.MyContacts.GetContact - by Red Blood on 04-16-2009 at 06:20 PM
RE: RE: [Help] Messenger.MyContacts.GetContact - by ArkaneArkade on 04-16-2009 at 08:48 PM
RE: RE: RE: [Help] Messenger.MyContacts.GetContact - by davidpolitis on 04-17-2009 at 12:24 AM


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