Shoutbox

Signoutc contact - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Signoutc contact (/showthread.php?tid=81485)

Signoutc contact by magemello on 02-06-2008 at 03:09 PM

hello how can i konw if anyone of contacts leave the chatwnd?when we are talking with some people in only one window?there are some event or function?


RE: Signoutc contact by Matti on 02-06-2008 at 04:29 PM

Yes, there is such event. It's called OnEvent_ChatWndContactRemoved, and it gives you a ChatWnd and the e-mail address of the contact who left as parameters.

Example:

code:
function OnEvent_ChatWndContactRemoved(ChatWnd, Email) {
   Debug.Trace(Email+" has left the chat with handle "+ChatWnd.Handle);
}
You can use the Email to check which contact left and do some things with the chat window or something... That's up to you. :)