code:
function OnEvent_ChatWndCreated ( pChatWnd ) {
}
That is fired when a chat window is opened.
The
pChatWnd object has a
Contacts property.
Now if you look at the Scripting documentation that CookieRevised directed you to you will notice that under the Objects Reference there is a Contacts object listed. If you look through the
properties of that object you should see the property you want to use.
By us just telling you the code you will never learn. But following those directions you should be able to easily find your answer.