quote:
Originally posted by xsylvain2
If a other person talk to me, switch direcly to his chat window.
This isn't recommended cause you could be typing and someone sends you a message and it switches to the other window and you keep typing not realizing it.
code:
function OnEvent_ChatWndReceiveMessage(objChatWnd, strOrigin, strMessage, intMessageKind){
Interop.Call('user32', 'ShowWindow', objChatWnd.Handle, 5 /* SW_SHOW */);
}