What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Getting email of ChatWnd

[Request] Getting email of ChatWnd
Author: Message:
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. [Request] Getting email of ChatWnd
Hi,

How can i get the e-mail address of the person who's talking to me?..

I got:
code:
var Contacts = ChatWnd.Contacts;
var e = new Enumerator(Contacts);
var Contact = e.item;
But then i get undefined
Please can sum1 help me ? :)

Greetz,
PaulE

This post was edited on 08-30-2006 at 03:16 PM by PaulE.
08-30-2006 03:16 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] Getting email of ChatWnd
code:
for(var enumerator = new Enumerator(ChatWnd.Contacts); !enumerator.atEnd(); enumerator.moveNext()) {
    var contact = enumerator.item(); //this is now a Contact object
    Debug.Trace('Contact: ' + contact.Email);
}

This post was edited on 08-30-2006 at 03:19 PM by matty.
08-30-2006 03:18 PM
Profile E-Mail PM Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: RE: [Request] Getting email of ChatWnd
quote:
Originally posted by Matty
code:
for(var enumerator = new Enumerator(ChatWnd.Contacts); !enumerator.atEnd(); enumerator.moveNext()) {
    var contact = enumerator.item(); //this is now a Contact object
    Debug.Trace('Contact: ' + contact.Email);
}


Thnx for the code and the fast reply :)
It works :D

Greetz,
PaulE
08-30-2006 03:21 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] Getting email of ChatWnd
Not a problem at all.
08-30-2006 03:25 PM
Profile E-Mail 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