What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need help!

Need help!
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Need help!
Messenger.MyContacts is an initerator object.

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message == "/whoihave"){
        var emessage = "Online Contact List:\n";
        for (var oContact = new Enumerator(Messenger.MyContacts); !oContact.atEnd(); oContact.moveNext()) {       
            if(oContact.item().Status == 3) emessage += oContact.item().Email+"\n";
        }
        return emessage;
    }
}

I bolded/red the parts you left out and your For Loop should be what is above not what you posted.

This post was edited on 12-15-2008 at 09:24 PM by matty.
12-15-2008 09:15 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need help! - by Razeth on 12-15-2008 at 09:02 PM
RE: Need help! - by foaly on 12-15-2008 at 09:12 PM
RE: Need help! - by matty on 12-15-2008 at 09:15 PM
RE: Need help! - by Razeth on 12-15-2008 at 09:34 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