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

Origin to email?
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Origin to email?
quote:
Originally posted by Matty
code:
for(var enumerator = new Enumerator(pChatWnd.Contacts) ; !enumerator.atEnd(); enumerator.moveNext()){
    var Contact = enumerator.item();
    Debug.Trace('Contact.Email :'+Contact.Email);
}

Your going to have to change pChatWnd to whatever the ChatWnd object is called in the function.
Wouldn't the following code be better?
code:
for(var enumerator = new Enumerator(pChatWnd.Contacts) ; !enumerator.atEnd(); enumerator.moveNext()){
    var Cont = enumerator.item();
    if (Cont.Name === Origin){
    var Contact = Cont;
    }
}
Debug.Trace('The email of "+Origin+" is "+Contact.Email)//and you can use Contact throughout the rest of the function too

This post was edited on 09-16-2006 at 07:29 AM by markee.
[Image: markee.png]
09-16-2006 07:27 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Origin to email? - by Robin4286 on 09-16-2006 at 02:46 AM
RE: Origin to email? - by matty on 09-16-2006 at 03:41 AM
RE: Origin to email? - by Robin4286 on 09-16-2006 at 03:57 AM
RE: Origin to email? - by cloudhunter on 09-16-2006 at 03:59 AM
RE: Origin to email? - by CookieRevised on 09-16-2006 at 04:32 AM
RE: Origin to email? - by markee on 09-16-2006 at 07:27 AM
RE: Origin to email? - by Robin4286 on 09-16-2006 at 06:25 PM
RE: Origin to email? - by R4000 on 09-16-2006 at 06:34 PM
RE: Origin to email? - by CookieRevised on 09-16-2006 at 10:50 PM
RE: Origin to email? - by markee on 09-22-2006 at 06:07 AM
RE: Origin to email? - by Deco on 09-22-2006 at 09:59 PM
RE: RE: Origin to email? - by CookieRevised on 09-22-2006 at 10:54 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