Jump to content

[SOLVED] Making a window with no taskbar but normal appearance


Achilles
 Share

Recommended Posts

I think I've done this before but I don't seem to be able to do it again. I want a window that has not taskbar item but does have an exit button. I also want the window to look like a normal window (not compressed and with a different x like $WS_EX_TOOLWINDOW gives). Anybody know how to do this?

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$style = BitOR($WS_POPUPWINDOW,$WS_CAPTION)

$otherGUI = GUICreate('Testing', 300, 300, -1, -1, $style, $WS_EX_TOOLWINDOW)
GUiSetState()

While 1 
    If GUIGetMsg() = $GUI_EVENT_CLOSE then Exit 
WEnd
Edited by Achilles
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

Hi, I don't think this is the correct way to do it, but it works for the no taskbar item.

Just set the styles you want on $hGUI2 window.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$hGUI1 = GUICreate('', -1, -1, -1, -1, -1, BitOR($WS_EX_LAYERED, $WS_EX_TOOLWINDOW))
GUiSetState()
$hGUI2 = GUICreate('Testing', 300, 300, -1, -1, -1, -1, $hGUI1)
GUiSetState()

While 1
    If GUIGetMsg() = $GUI_EVENT_CLOSE then Exit
WEnd
Edited by smashly
Link to comment
Share on other sites

Hi, I don't think this is the correct way to do it, but it works for the no taskbar item.

Just set the styles you want on $hGUI2 window.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$hGUI1 = GUICreate('', -1, -1, -1, -1, -1, BitOR($WS_EX_LAYERED, $WS_EX_TOOLWINDOW))
GUiSetState()
$hGUI2 = GUICreate('Testing', 300, 300, -1, -1, -1, -1, $hGUI1)
GUiSetState()

While 1
    If GUIGetMsg() = $GUI_EVENT_CLOSE then Exit
WEnd
:P So all I had to do was make it a child window.. I didn't think of that. This actually works great because the I do have a parent window... Thanks smashly.
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

:P So all I had to do was make it a child window.. I didn't think of that. This actually works great because the I do have a parent window... Thanks smashly.

martin does it a similar way, except he just doesn't set the state of the parent to show at all:

http://www.autoitscript.com/forum/index.ph...mp;#entry506311

Link to comment
Share on other sites

martin does it a similar way, except he just doesn't set the state of the parent to show at all:

http://www.autoitscript.com/forum/index.ph...mp;#entry506311

I would do that but I have a parent GUI so I'll just use it instead of creating an extra hidden GUI. I'll remember that for future use though...
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

  • 8 years later...

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