Jump to content
Sign in to follow this  
nf67

Hiding a window that wasn't created by AutoIt

Recommended Posts

nf67

Hi,

I'm running a little server that uses 4 console windows, but the windows don't "group".

Since I just do other things while the server is running in the background, I am stuck with the 4 windows consuming my precious taskbar space ...>_<

I thought that GUISetState(@SW_HIDE, $Winhandle) would do, but this didn't seem to work (as shown below).

;Trying to hide a window from the taskbar

AutoItSetOption ( "WinTitleMatchMode",2 )

$Handle = WinGetHandle("Paint")
If @Error Then
MsgBox(0, "Error", "Couldn't find a handle.")
Else
MsgBox(0, "Handle", "Handle = " & $Handle)
GUiSetState(@SW_HIDE, $Handle)
EndIf

Anything that would hide the windows from the taskbar or more would be nice :(

Suggestions?

Share this post


Link to post
Share on other sites
Andreik

Hi,

I'm running a little server that uses 4 console windows, but the windows don't "group".

Since I just do other things while the server is running in the background, I am stuck with the 4 windows consuming my precious taskbar space ...>_<

I thought that GUISetState(@SW_HIDE, $Winhandle) would do, but this didn't seem to work (as shown below).

;Trying to hide a window from the taskbar

AutoItSetOption ( "WinTitleMatchMode",2 )

$Handle = WinGetHandle("Paint")
If @Error Then
MsgBox(0, "Error", "Couldn't find a handle.")
Else
MsgBox(0, "Handle", "Handle = " & $Handle)
GUiSetState(@SW_HIDE, $Handle)
EndIf

Anything that would hide the windows from the taskbar or more would be nice :(

Suggestions?

Use WinSetState() not GUISetState().

When the words fail... music speaks

Share this post


Link to post
Share on other sites
nf67

Thank you for your quick reply, problem solved (so far ;-) )

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.