Jump to content

hide running programs


sumkid
 Share

Recommended Posts

you can hide windows to remove them from the taskbar, but they'll be removed from the desktop view as well, I've written a program that hides windows and keeps track of what it has hidden in a registry file so you can easily restore the windows at a later point.

AnyGui.au3 (search for it in example scripts) has a function that can add styles to any window, autoit or not, don't know if you'd be able to apply the exstyle $WS_EX_TOOLWINDOW to a window for the result you want, but that style makes the window not appear in the taskbar.

[u]You can download my projects at:[/u] Pulsar Software
Link to comment
Share on other sites

  • Moderators

For the system tray icons, you may want to look at: http://www.autoitscript.com/forum/index.ph...c=13704&hl=

For the icons in the task, you may want to look at the WM commands on msdn and SendMessage.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

A good way to hide a window is to simply move it to coordinates that are off the screen.

For example,

$mainwindow = GUICreate("Color1", 1,1,-200,-100,0x00C00000,$WS_EX_TOOLWINDOW)

creates a window that is really small, 1 by 1 (which wasn't really necessary but done just for demonstration purposes), and displays it at -200,-100, which is offscreen and therefore not visible.

The $WS_EX_TOOLWINDOW makes it a tool window, which means it does not show up in the taskbar -- if that is desired.

Add in #NoTrayIcon so that no icon appears in the tray and you have a program that is invisible -- even Alt-TAB will not show it.

However, Task Manager will show it under processes and you can stop it there, if necessary.

I run the program from a Delphi program, exchange data between the two and the Delphi program then closes the AutoIt program. Controls do not need to be on-screen to be detected and manipulated by the AutoIt functions.

If you want to have one program make another program invisible, you can use WinMove to move it off the screen.

Link to comment
Share on other sites

  • Moderators

A good way to hide a window is to simply move it to coordinates that are off the screen.

For example,

$mainwindow = GUICreate("Color1", 1,1,-200,-100,0x00C00000,$WS_EX_TOOLWINDOW)

creates a window that is really small, 1 by 1 (which wasn't really necessary but done just for demonstration purposes), and displays it at -200,-100, which is offscreen and therefore not visible.

The $WS_EX_TOOLWINDOW makes it a tool window, which means it does not show up in the taskbar -- if that is desired.

Add in #NoTrayIcon so that no icon appears in the tray and you have a program that is invisible -- even Alt-TAB will not show it.

However, Task Manager will show it under processes and you can stop it there, if necessary.

I run the program from a Delphi program, exchange data between the two and the Delphi program then closes the AutoIt program. Controls do not need to be on-screen to be detected and manipulated by the AutoIt functions.

If you want to have one program make another program invisible, you can use WinMove to move it off the screen.

How is that relative to what the OP is requesting?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...