Skip to content

Instantly share code, notes, and snippets.

@davidlwatsonjr
Created March 9, 2016 06:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidlwatsonjr/626a95dcbf5729e2e350 to your computer and use it in GitHub Desktop.
Save davidlwatsonjr/626a95dcbf5729e2e350 to your computer and use it in GitHub Desktop.
An AutoHotkey script that toggles auto-hide on the Windows taskbar.
WinWait, ahk_class Shell_TrayWnd,
IfWinNotActive, ahk_class Shell_TrayWnd, , WinActivate, ahk_class Shell_TrayWnd,
WinWaitActive, ahk_class Shell_TrayWnd,
Send, {APPSKEY}r
WinWait, Taskbar and Start Menu Properties,
IfWinNotActive, Taskbar and Start Menu Properties, , WinActivate, Taskbar and Start Menu Properties,
WinWaitActive, Taskbar and Start Menu Properties,
Send, {ALTDOWN}u{ALTUP}{ENTER}
@l5956578
Copy link

Another ahk script

f12::
RegRead, TaskbarToggle, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3, Settings
	If (TaskbarToggle = "30000000feffffff02800000030000003e0000001e000000000000001a04000080070000380400006000000001000000")
		RegWrite, REG_BINARY, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3, Settings, 30000000feffffff03800000030000003e0000001e000000000000001a04000080070000380400006000000001000000
	else ; If (TaskbarToggle = 30000000feffffff03800000030000003e0000001e000000000000001a04000080070000380400006000000001000000)
		RegWrite, REG_BINARY, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3, Settings, 30000000feffffff02800000030000003e0000001e000000000000001a04000080070000380400006000000001000000
process, close, explorer.exe
Return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment