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:
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: [Help] Messenger.MyContacts.GetContact
quote:
Originally posted by Red Blood
Hello, I'm new to this forum. I started scripting not to long ago and at the moment I'm at a stump. What I'm trying to do is when the user types something (EX:/Test) The user recieves a message BUT ONLY THAT USER.
Can you please try to explain in more detail what exactly you're doing... At the moment I've just written this code which probably isn't of any use. *-)
Javascript code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    if (match = /^\/test (.*)/i.exec(Message))
    {
        var Email = match[1];
        if (Messenger.MyContacts.GetContact(Email))
            return "Test";
        else
            MsgPlus.DisplayToast("Error", Email + " is not on your contact list");
        return "";
    }
    return Message;
}
 
function OnGetScriptCommands()
{
    var SC = "<ScriptCommands>";
    SC += "<Command>";
    SC += "<Name>test</Name>";
    SC += "<Description>Test</Description>";
    SC += "</Command>";
    SC += "</ScriptCommands>";
    return SC;
}


Btw, I realise the code makes no real sense. I'm confused and it is late.

This post was edited on 04-16-2009 at 02:31 PM by davidpolitis.
04-16-2009 02:27 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