What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Found an old script, need help getting it to work!

Found an old script, need help getting it to work!
Author: Message:
bcapewell
New Member
*


Posts: 3
Joined: Jun 2009
O.P. Sad  Found an old script, need help getting it to work!
I found an old script that allows you to ignore somebody, the problem is, it's really unstable and once using the !unignore command, it will continue to ignore that person. I used to use stuffplug but since the 9.0 upgrade they haven't made a new version.

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 "";
        }
    }
}

If anyone could help me I'd be very grateful, thank you.
I have no experience with scripts (N)
06-14-2009 10:33 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: Found an old script, need help getting it to work!
Why would it not work? Have you got some debugging info?

In the meantime, I've got something that may work. It it, however, untested code.

.zip File Attachment: Ignore test.zip (413 bytes)
This file has been downloaded 58 time(s).

This post was edited on 06-27-2009 at 10:00 PM by SmokingCookie.
06-27-2009 09:48 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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