Sign in to follow this  
Followers 0
Achilles

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

8 posts in this topic

#1 ·  Posted (edited)

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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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]

Share this post


Link to post
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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites
On 06.08.2008 at 7:44 PM, AdmiralAlkex said:

You could just make it a child of the desktop, then you would only need one GUI

How could i make a child of the desktop?

Share this post


Link to post
Share on other sites
4 hours ago, Renderer said:

How could i make a child of the desktop?

Desktop is a bit more difficult, because you have to account for windows xp, 7, or 8/8.1/10.

Check out this topic and post #7 shows how to use the autoit automatically created window as the parent

 

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  
Followers 0