What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] hide MSN Messenger from the task bar, while it remains in the system tray?

[request] hide MSN Messenger from the task bar, while it remains in the system tray?
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tray?
This was coded by Volv and edited by CookieRevised

code:
// Detect when the Contact List window has opened
function OnEvent_ContactListWndCreated() {
        // Hide the Contact List's taskbar item
        ShowInTaskbar(Messenger.ContactListWndHandle, false);
}


// Window Manipulation Module 2
// created by CookieRevised based upon Volv's code
function ShowInTaskbar(lngHandle, boolVisible) {
        var GWL_EXSTYLE = -20;
        var WS_EX_NOACTIVATE = 0x8000000;

        // Get the property
        // Very important, so we do not overwrite any other set style
        var CurrentExStyle = Interop.Call("User32", "GetWindowLongA", lngHandle, GWL_EXSTYLE);

        // Set the property
        if(boolVisible) {
                // Remove WS_EX_NOACTIVATE (using binary AND NOT operation)
                Interop.Call("User32", "SetWindowLongA", lngHandle, GWL_EXSTYLE, CurrentExStyle &~ WS_EX_NOACTIVATE);
        } else {
                // Set WS_EX_NOACTIVATE (using binary OR operation)
                Interop.Call("User32", "SetWindowLongA", lngHandle, GWL_EXSTYLE, CurrentExStyle | WS_EX_NOACTIVATE);
        }
}

The original thread is in beta testing so you can't see it. Simply create a new script, delete the default code and copy over this code.
06-26-2006 03:18 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request] hide MSN Messenger from the task bar, while it remains in the system tray? - by bungleMX on 06-26-2006 at 02:52 AM
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tray? - by matty on 06-26-2006 at 03:18 AM
RE: RE: [request] hide MSN Messenger from the task bar, while it remains in the syste - by bungleMX on 06-26-2006 at 04:23 AM
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tray? - by Mike on 06-26-2006 at 06:06 AM
RE: RE: [request] hide MSN Messenger from the task bar, while it remains in the syste - by bungleMX on 06-26-2006 at 07:43 PM
RE: RE: [request] hide MSN Messenger from the task bar, while it remains in the syste - by bungleMX on 06-27-2006 at 01:55 AM
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tr - by Menthix on 06-26-2006 at 06:08 AM
RE: RE: [request] hide MSN Messenger from the task bar, while it remains in the syste - by bungleMX on 06-26-2006 at 07:44 PM
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tr - by CookieRevised on 06-26-2006 at 07:47 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