code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
var Contacts = ChatWnd.Contacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Name.substring(0, 20));
}
}
You should be able to adapt that into something useful.
Contact.Name - Name of the contact in the chat.
substring(start, end) - cuts down the string from start, till end.
Might also want to check Contacts.count to see if its 1 (only 1 contact in a the chat window).
Hope that helps.