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.