quote:
Originally posted by PedroGabriel
Eg:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, rMessage, MsgKind){
if (rMessage !==''){
ChatWnd.SendMessage(Contact.Email+'\n'+rMessage);
}}
I can't find this on forums too =[
Contact.Email is not passed as a part of this function.
You need to enumerate the ChatWnd.Contacts object.
js code:
function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nKind) {
for (var oContact = new Enumerator(pChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext()) {
Debug.Trace(oContact.item().Email);
}
}