I only found AutoHotKey solutions.
The current Windows version has a long bug that unhides the taskbar with new logins.

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