What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script Request - Ignore specific contacts

Script Request - Ignore specific contacts
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Script Request - Ignore specific contacts
I didn't think that was what you were after or else I would have posted an even better script for you.

code:
var list = Array();

function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
    for (i=0; i<list.length;i++)
    {
        if (Origin === Messenger.MyContacts.GetContact(list[i]).Name)
        {
            ChatWnd.SendMessage("/close")
        }
        else
        {
            return Message;
        }
    }
}

function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if (Message === "!ignore")
    {
        var ChatWndContacts = ChatWnd.Contacts;
        if(ChatWndContacts.Count == 1)
        {
            var e = new Enumerator(ChatWndContacts);
            var Contact = e.item();
            list[list.length] = Contact.Email
        }
        return "";
        ChatWnd.SendMessage("/close")
    }
    else if (Message === "!unignore")
    {
        var ChatWndContacts = ChatWnd.Contacts;
        if(ChatWndContacts.Count == 1)
        {
            var e = new Enumerator(ChatWndContacts);
            var Contact = e.item();
            for (i=0;i<list.length;i++)
            {
                if(Contact.Name === list[i])
                {
                    list[i] = "";
                }
            }
            return "";
        }
    }
}

I'm sorry I don't know how to stop the pop-ups either.  The commands are "!ignore" and "!unignore".  I hope you like it.

EDIT: Changed it with te advice of Mattike (I missed a ")" :P)

This post was edited on 08-24-2006 at 04:07 PM by markee.
[Image: markee.png]
08-24-2006 03:57 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script Request - Ignore specific contacts - by kb135 on 08-24-2006 at 01:48 PM
RE: Script Request - Ignore specific contacts - by Ash_ on 08-24-2006 at 02:07 PM
RE: Script Request - Ignore specific contacts - by kb135 on 08-24-2006 at 02:26 PM
RE: Script Request - Ignore specific contacts - by RaceProUK on 08-24-2006 at 02:28 PM
RE: Script Request - Ignore specific contacts - by Felu on 08-24-2006 at 02:30 PM
RE: RE: Script Request - Ignore specific contacts - by kb135 on 08-24-2006 at 03:47 PM
RE: Script Request - Ignore specific contacts - by markee on 08-24-2006 at 03:57 PM
RE: RE: Script Request - Ignore specific contacts - by Matti on 08-24-2006 at 04:02 PM
RE: RE: RE: Script Request - Ignore specific contacts - by J-Thread on 08-24-2006 at 07:56 PM
RE: RE: RE: RE: Script Request - Ignore specific contacts - by TheBlasphemer on 08-25-2006 at 04:17 PM
RE: Script Request - Ignore specific contacts - by CookieRevised on 08-24-2006 at 06:06 PM
RE: Script Request - Ignore specific contacts - by vikke on 08-24-2006 at 08:01 PM
RE: Script Request - Ignore specific contacts - by Jimcando on 08-24-2006 at 09:28 PM
RE: Script Request - Ignore specific contacts - by cloudhunter on 08-24-2006 at 10:12 PM
RE: Script Request - Ignore specific contacts - by RaceProUK on 08-25-2006 at 10:10 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