Hi! I'm trying to hide the taskbar in Windows 10. I found this (viewtopic.php?p=487232#p487232) post by Rohwedder that does this. The problem I am having is to get back "normal" functionality of the taskbar after terminating the script.
Code: Select all
#NoEnv
#Persistent
#SingleInstance Force
OnExit("ExitFunc") ; Taskbar appears when terminating the script.
ExitFunc(ExitReason, ExitCode)
{
if ExitReason not in Logoff,Shutdown
WinShow, ahk_class Shell_TrayWnd
}
; Hide taskbar until mouse hovers over bottom of screen
SetTimer, SysTray, 500
SysTray:
CoordMode, Mouse, Screen
MouseGetPos,, Y
IF (40 > A_ScreenHeight - Y)
WinShow, ahk_class Shell_TrayWnd
Else
WinHide, ahk_class Shell_TrayWnd
Return