Jump to content

Disable GUI in Taskbar and ALT+TAB dialog


 Share

Go to solution Solved by Skeletor,

Recommended Posts

  • Solution

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 Regards
Skeletor

"Coffee: my defense against going postal."

Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI

Link to comment
Share on other sites

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 by TheXman
Link to comment
Share on other sites

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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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