O.P. RE: Yahoo contacts
the code is as follows. My observations is MSN contacts work, yahoo contacts don't. I use the GUID to identify then 4 now.
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
// get contact
var Contact = null;
var e = new Enumerator(ChatWnd.Contacts);
for(; !e.atEnd(); e.moveNext())
{
if(e.item().Name == Origin) {
Contact = e.item();
}
}
if (Origin != Messenger.MyName ) {
if (Contact != null) {
Debug.Trace(Contact.Email);
} else {
Debug.Trace('unknown');
Debug.Trace( new ActiveXObject("Scriptlet.TypeLib").GUID.substr(1,36));
}
}
}
|