Sign in to follow this  
Followers 0
computergroove

Setting the Taskbar to autohide on program start

3 posts in this topic

Can I set the taskbar to autohide on the start of my script? Can I make my gui window overtake the taskbar? Can I set GUICreate to autoread the screen resolution and make a window that big?


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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0