[Windows 11] How to hide taskbar?

Just starting out? Need help? Post your questions and find answers here.
User avatar
skywalk
Addict
Addict
Posts: 4215
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[Windows 11] How to hide taskbar?

Post 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. :evil:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4953
Joined: Sun Apr 12, 2009 6:27 am

Re: [Windows 11] How to hide taskbar?

Post 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)
Egypt my love
User avatar
skywalk
Addict
Addict
Posts: 4215
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [Windows 11] How to hide taskbar?

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply