What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Close windows when logged out

Close windows when logged out
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Close windows when logged out
js code:
function OnEvent_SignOut() {
    for (var oChatWnd = new Enumerator(Messenger.CurrentChats); !oChatWnd.atEnd(); oChatWnd.moveNext()) {
        Interop.Call('user32', 'SendMessageW', oChatWnd.item().Handle, 0x10 /*WM_CLOSE*/, 0, 0);
    }
}

This post was edited on 01-22-2010 at 06:45 PM by matty.
01-22-2010 06:44 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Close windows when logged out - by Vilkku on 01-22-2010 at 06:03 PM
RE: Close windows when logged out - by matty on 01-22-2010 at 06:44 PM
RE: Close windows when logged out - by Vilkku on 01-22-2010 at 07:22 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On