Page 1 of 1
[Windows 11] How to hide taskbar?
Posted: Wed Dec 13, 2023 5:10 pm
by skywalk
Does anyone have a snippet to hide the Windows 11 taskbar?
I only found AutoHotKey solutions.
The current Windows version has a long bug that unhides the taskbar with new logins.

Re: [Windows 11] How to hide taskbar?
Posted: Wed Dec 13, 2023 10:18 pm
by RASHAD
Hi skywalk
#1 :
Code: Select all
;************************* Hide TaskBar *******************************
TaskBar = FindWindow_("Shell_TrayWnd",0)
ShowWindow_(TaskBar,#SW_HIDE)
;************************* Show TaskBar *******************************
Delay(5000)
TaskBar = FindWindow_("Shell_TrayWnd",0)
ShowWindow_(TaskBar,#SW_SHOW)
#2 :
Code: Select all
#TOGGLE_HIDEWINDOW = $80
#TOGGLE_UNHIDEWINDOW = $40
TaskBar = FindWindow_("Shell_TrayWnd",0)
SetWindowPos_(TaskBar, 0, 0, 0, 0, 0, #TOGGLE_HIDEWINDOW)
Delay(1000)
TaskBar = FindWindow_("Shell_TrayWnd",0)
SetWindowPos_(TaskBar, 0, 0, 0, 0, 0, #TOGGLE_UNHIDEWINDOW)
Re: [Windows 11] How to hide taskbar?
Posted: Wed Dec 13, 2023 10:49 pm
by skywalk
Thanks RASHAD!
I'll try this when I get home.
This is for a media PC connected to an LED TV on the wall.
The PC came with Windows 11 installed instead of Ubuntu. Windows 11 lacks customization features I use in Windows 10. Vertical taskbar is not available. AutoHide is forgetful.