Jump to content

Recommended Posts

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]
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
Posted

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]
  • 8 years later...
Posted
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?

Posted
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

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...