Doing something like this will update the Chat Windows every 10 seconds and when they are opened as well.
js code:
MsgPlus.AddTimer('update_names', 10000);
function OnEvent_ChatWndCreated(pChatWnd) {
var s;
for (oContact = new Enumerator(pChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext())
s+=oContact.item().Name+(!oContact.atEnd()?', ':'');
Interop.Call('user32', 'SetWindowTextW', pChatWnd.Handle, MsgPlus.RemoveFormatCodes(s));
}
function OnEvent_Timer(sTimerId) {
for (var oChatWnd = new Enumerator(Messenger.CurrentChats); !oChatWnd.atEnd(); oChatWnd.moveNext()) {
OnEvent_ChatWndCreated(oChatWnd.item());
}
MsgPlus.AddTimer(sTimerId, 10000);
}
Cheers