Jump to content

Hide Program From Task-Switch List?


Luffy
 Share

Recommended Posts

Hi Forum,

The situation is: I ve got some program that starts with windows and stays resident on desktop screen.

If i taskswitch, i often have to over tap this program.

Is it possible with AutoIT to remove it from that "taskswitchlist"? I've searched the forum but i found nothing with content i could use.

Just to make sure: i never want to hide anything else but that.

Please help, or i get crazy <_<

thx in advance!

sry for double posting

Edited by big_daddy
Made topic title as little less conspicuous.
Link to comment
Share on other sites

Is WinSetOnTop() what you want?

Sry, no. WinSetOnTop() would set "Always On Top" on that window.This is not what i want.

To show what i mean:

There's a clock named ClocX. This Clock shows up on desktop and stays there. You can click through make it transparent and many more.

And there's an option "not to show up in Alt-Tab-List". This option i want to set in an other program that also stays on desktop but without this feature.

Link to comment
Share on other sites

There are two ways - set $WS_EX_TOOLWINDOW style or make it a child of some window (not a very good option if you're doing it on some external app). ClockX uses first method.

You can toggle it like this...

$get = DllCall("user32.dll", "long", "GetWindowLong", "hwnd", $hwnd, "int", -20)
DllCall("user32.dll", "long", "SetWindowLong", "hwnd", $hwnd, "int", -20, "long", BitXOR($get[0],$WS_EX_TOOLWINDOW))

This style also changes appearance of the window's titlebar (which doesn't show on ClockX since it uses skin), but maybe you can live with that...

Edited by Siao

"be smart, drink your wine"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...