Shoutbox

[Request] Getting email of ChatWnd - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request] Getting email of ChatWnd (/showthread.php?tid=65609)

[Request] Getting email of ChatWnd by PaulE on 08-30-2006 at 03:16 PM

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
RE: [Request] Getting email of ChatWnd by matty on 08-30-2006 at 03:18 PM

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

RE: RE: [Request] Getting email of ChatWnd by PaulE on 08-30-2006 at 03:21 PM

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
RE: [Request] Getting email of ChatWnd by matty on 08-30-2006 at 03:25 PM

Not a problem at all.