Jotos Posted April 25, 2023 Posted April 25, 2023 Hey! I have created a GUI with WinSetOnTop($Form1, "", 1) So far everything works great, but now I would like the GUI to be displayed on the desktop, but not in the taskbar and also not in the ALT+TAB - dialog. How can I realize this?
Solution Skeletor Posted April 25, 2023 Solution Posted April 25, 2023 Have you tried this? #include <WinAPI.au3> #include <WindowsConstants.au3> Local $hWnd = WinGetHandle($Form1) Local $iStyle = BitOr(_WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE), $WS_EX_TOOLWINDOW) _WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, $iStyle) WinSetOnTop($Form1, "", 1) Kind RegardsSkeletor "Coffee: my defense against going postal." Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI
TheXman Posted April 25, 2023 Posted April 25, 2023 (edited) By setting the form's parent to AutoIt's hidden window, it will not be shown in the taskbar. #include <GUIConstants.au3> Global $ghParentForm = WinGetHandle(AutoItWinGetTitle()) ;Get handle to AutoIt's hidden window Global $frmMain = GUICreate("Example Form (Pres ESC to Close)", 500, 300, -1, -1, -1, -1, $ghParentForm) GUISetState(@SW_SHOW, $frmMain) WinSetOnTop($frmMain, "", 1) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Edited April 25, 2023 by TheXman mistersquirrle 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
Jotos Posted April 25, 2023 Author Posted April 25, 2023 Thanks a lot! Itried the 1 hour ago, Skeletor said: Have you tried this? #include <WinAPI.au3> #include <WindowsConstants.au3> Local $hWnd = WinGetHandle($Form1) Local $iStyle = BitOr(_WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE), $WS_EX_TOOLWINDOW) _WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, $iStyle) WinSetOnTop($Form1, "", 1) Thanks a lot! Works! 52 minutes ago, TheXman said: By setting the form's parent to AutoIt's hidden window, it will not be shown in the taskbar. #include <GUIConstants.au3> Global $ghParentForm = WinGetHandle(AutoItWinGetTitle()) ;Get handle to AutoIt's hidden window Global $frmMain = GUICreate("Example Form (Pres ESC to Close)", 500, 300, -1, -1, -1, -1, $ghParentForm) GUISetState(@SW_SHOW, $frmMain) WinSetOnTop($frmMain, "", 1) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE I also tried your suggestion. The GUI was no longer present in the taskbar, but it was still visible in the ALT+TAB dialog.
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