Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Open Taskbar properties, toggle autohide taskbar, apply and close window
- ; https://www.reddit.com/r/AutoHotkey/comments/2kcd5d/hotkey_to_toggle_autohide_the_taskbar/
- ;------------------------------------------------------------------------
- #!t::
- Run, RunDLL32.EXE shell32.dll`,Options_RunDLL 1
- WinWait, Taskbar and Start Menu Properties
- Send, ua{ESC}
- return
- ; https://superuser.com/questions/654170/how-to-toggle-the-auto-hide-status-of-the-windows-taskbar
- #!Space::
- VarSetCapacity(APPBARDATA, A_PtrSize=4 ? 36:48)
- NumPut(DllCall("Shell32\SHAppBarMessage", "UInt", 4 ; ABM_GETSTATE
- , "Ptr", &APPBARDATA
- , "Int")
- ? 2:1, APPBARDATA, A_PtrSize=4 ? 32:40) ; 2 - ABS_ALWAYSONTOP, 1 - ABS_AUTOHIDE
- , DllCall("Shell32\SHAppBarMessage", "UInt", 10 ; ABM_SETSTATE
- , "Ptr", &APPBARDATA)
- KeyWait, % A_ThisHotkey
- Return
Add Comment
Please, Sign In to add comment