Achilles Posted August 6, 2008 Posted August 6, 2008 (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 August 7, 2008 by Achilles My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
smashly Posted August 6, 2008 Posted August 6, 2008 (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 August 6, 2008 by smashly
Achilles Posted August 6, 2008 Author Posted August 6, 2008 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 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]
ResNullius Posted August 6, 2008 Posted August 6, 2008 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
Achilles Posted August 6, 2008 Author Posted August 6, 2008 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;#entry506311I 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]
AdmiralAlkex Posted August 7, 2008 Posted August 7, 2008 You could just make it a child of the desktop, then you would only need one GUI .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Renderer Posted February 10, 2017 Posted February 10, 2017 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?
InunoTaishou Posted February 10, 2017 Posted February 10, 2017 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now