Jump to content

Recommended Posts

Posted

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?

Posted

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

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
×
×
  • Create New...