Jump to content

Setting the Taskbar to autohide on program start


Recommended Posts

Maybe there is a better way to get the tite bar height of the window I haven't looked in to it.

Opt("WinTitleMatchMode", 4)

_TaskBar("Hide")
$TitleBarHeight = 34
GUICreate("Test",@DesktopWidth,@DesktopHeight-$TitleBarHeight,0,0)
GUISetState()
Sleep(2000)
_TaskBar("Show")


Func _TaskBar($vType)
Local $Handle
    $handle = WinGetHandle("classname=Shell_TrayWnd")
    If $vType = "Hide" then 
        WinSetState ( $handle, "", @sw_hide )
    Else
        WinSetState ( $handle, "", @sw_Show )
    EndIf

EndFunc
Link to comment
Share on other sites

Maybe there is a better way to get the tite bar height of the window I haven't looked in to it.

Opt("WinTitleMatchMode", 4)

_TaskBar("Hide")
$TitleBarHeight = 34
GUICreate("Test",@DesktopWidth,@DesktopHeight-$TitleBarHeight,0,0)
GUISetState()
Sleep(2000)
_TaskBar("Show")


Func _TaskBar($vType)
Local $Handle
    $handle = WinGetHandle("classname=Shell_TrayWnd")
    If $vType = "Hide" then 
        WinSetState ( $handle, "", @sw_hide )
    Else
        WinSetState ( $handle, "", @sw_Show )
    EndIf

EndFunc

I used GUICreate("Video Player",1000,700,0,0,$WS_MAXIMIZE,$WS_EX_TOPMOST) and it maximized the window and set it on top of everything.

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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...