Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Windows 8 on my desktop. Currently I have to move my mouse over the taskbar, right click, click on properties, click on auto-hide the taskbar, and then click OK. This is a real pain if you want to toggle this status between on and off several times during the day. In fact, it's unworkable, so it stays on by default and wastes a lot of screen real estate when I don't need it.

Is there a better way?

(If it helps, I use Autohotkey.)

share|improve this question
See this post – Portland Runner Oct 4 '13 at 3:05
@PortlandRunner Thanks for the tip. I'd already seen it, but it's trying to do something different, which is to show a hidden taskbar. I want to toggle the auto-hide status of the taskbar, from 'do auto-hide' to 'do not auto-hide', and back again. – oldmankit Oct 7 '13 at 3:30
up vote 7 down vote accepted

Here is an AutoHotKey script to resolve the problem:

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
share|improve this answer
Thanks very much for posting that. Does this just hide the taskbar and leave other windows as they are, or will they automatically fill the space that the taskbar used to occupy? The problem with many solutions is that the taskbar hides but other windows don't fill the space. – oldmankit Oct 9 '13 at 6:14
This works for me (w7 x64). All windows are fill the space that the taskbar used. – Grey Oct 12 '13 at 18:56
Wow - this is the perfect solution for me, since I already use AutoHotKey. Thanks so much - working on Windows 8.1. – oldmankit Oct 14 '13 at 3:47
Note that this script is using Space as a hot key (if you were wondering how to toggle hide/show) which is not ideal. I replaced it with #b (win + b, b for bar). – alexeit Feb 5 '14 at 4:09
For some reason if you press the hot key repeatedly with a small delay it will skip every second call eg hit hot key -> it will toggle -> hit again -> nothing happens -> hit again -> it will toggle and so on. However it works fine if delay between hot key presses is more then a few seconds. – alexeit Feb 5 '14 at 4:14

Try this little program that I found a while ago. 'Tis amazing. It toggles the taskbar shown or hidden with Alt-T, and you can set it to start up with windows as well.

It's called Taskbar Eliminator and it works for both Win7 and Win 8

share|improve this answer
Yes, that's the perfect little app. Just what I was looking for! – oldmankit Oct 14 '13 at 3:39
I'm forced to accept the other answer that uses AutoHotKey, though, since it doesn't require installing any more software than I already use. I'm sure your answer will be the right one for someone else, though. – oldmankit Oct 14 '13 at 3:48
Thanks, it works as I expected. – Edwin Yip Jul 4 '15 at 7:33

"taskbar real toggle"

The AutoHotKey script above in the best answer works fine. On my PC I combined it with


This taskbar hiding application lets me choose the hotkey to hide the taskbar. I mapped the AutoHotKey-hotkey to Win+A and the TaskBar Hider to Win+Y. So now when I press Win+Y, Win+A the taskbar toggles without popping up again when I accidentally the bottom pixel; when I press Win+Y, Win+A again it comes back and stays there no matter where I put the mouse cursor and it's just great. A one-key solution would be even better though with the two hotkeys so close together it's really manageable.

Maybe there is a better (one-key-) solution using just AutoHotKey?

share|improve this answer
does not work with my win7 64bit. – Edwin Yip Jul 4 '15 at 7:33
Of course you could edit the AHK script to also emit the second keypress event. – accolade Nov 12 '15 at 15:10

Yes you can download this great tool called " Hide Taskbar" , which gives you a shortcut " Ctrl+Esc" (by default, you can change it) to hide/unhide the taskbar

download here

share|improve this answer
Thank you for this answer. I downloaded the program. Unfortunately when I press "Ctrl+Esc" it hides the taskbar, but it just leaves an empty task-bar-sized space on the desktop. Maximised applications don't use up that space (which is now wasted space). When I use the built-in Windows option, applications automatically will maximise to fill the entire screen. Now I just have a black strip where the taskbar used to be, but I don't get any more screen real estate. – oldmankit Oct 7 '13 at 3:33

I found a program called "Taskbar Control" thats lets you set a Taskbar Autohide toggle key.

Note: Make sure you download "Taskbar AutoHide Control" version if you want your current window to auto-fill the space.

share|improve this answer

I couldn't get the AutoHotKey script from Gray to work for me on Win 8.1, so I made one. Put this in a .ahk file

Run, %SystemRoot%\System32\rundll32.exe shell32.dll`,Options_RunDLL 1
WinWait, Taskbar and Navigation properties, 
IfWinNotActive, Taskbar and Navigation properties, , WinActivate, Taskbar and Navigation properties, 
WinWaitActive, Taskbar and Navigation properties, 

Tested on Windows 8.1.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.