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

Is this possible? I want to close programs in the taskbar with middle-click, like tabs in firefox. The best approach I have so far is waiting for the mini-view that pops up when you point with the mouse in the taskbar and then middle-clicking there, but I would like to close them directly.

share|improve this question
Why haven't you picked Leftium's answer as accepted? – Nam G VU Dec 10 '11 at 7:23
They never confirmed that it worked. – Synetech Feb 16 '12 at 3:18
Done, I haven't tried it until now :) – JoePerkins May 6 '12 at 15:42
up vote 15 down vote accepted

update: The 7 Taskbar Tweaker site doesn't play nice with some foreign IP addresses (returns 403:Forbidden). Download 7 Taskbar Tweaker v3.3.2 from a mirror.

7 Taskbar Tweaker allows closing windows by middle-clicking the taskbar, as well as some other stuff like "ungrouping" taskbar items.

Now I don't miss the pre-Windows 7 feature where I could CTRL-click multiple windows from the taskbar and close them all at once. Middle clicking is actually faster and I very rarely want to start a new instance by middle-clicking or use those jump lists (I got the standard menu back^^).

share|improve this answer
Holy cow thank you so much for this link. I've been looking for a way to get the standard right click menu back without having to hold shift ever since windows 7 came out! – Fopedush Dec 11 '09 at 17:07
The site is down. Well... If you trust me, you could get it from me:… – Tarnay Kálmán Jun 10 '10 at 19:12
That works pretty well I guess, thanks. It has also some very interesting options, such as the taskbar double/middle-click actions; too bad it doesn't allows to launch a particular program or document that way... – JoePerkins May 6 '12 at 15:40
the "7+ taskbar tweaker" works great even on windows 8 : . thank you for your suggestion. – android developer Apr 1 '13 at 8:12
I've just scanned it on and resulted with TWO detections!? What the...… – Nam G VU Feb 20 '14 at 8:38

You could also do that with a AutoHotkey script.

The following one could be the right thing for you:

share|improve this answer
No windows-registry tweak? That would be better, middle-click has an utility after all, but not very useful: opening another instance of the selected utility. – JoePerkins Aug 18 '09 at 16:47
Unfortunately that script doesn't work on Vista/Windows 7. – Tarnay Kálmán Oct 12 '09 at 2:12

Shift+Right clicking on the taskbar button will bring up a menu with Restore, Minimize, Close, etc (or Restore all, Minimize all, Close all if it's a grouped button).

share|improve this answer

What type of mouse do you have and are you running the bare minimum mouse drivers? I currently have a one of the new "blue" mice from Microsoft, and installed the drivers that came along with it. The extended drivers will let you change the action of all the buttons on the mouse globally or program specific. I'm pretty sure that Logitech drivers allow the same thing too. One of the available options to change for the middle button is Exit Program.

share|improve this answer
That's interesting, I actually have a Logitech mouse and I use Set Point to change button behaviour, but this solution may cause problems if you configure globally the middle click to close programs, because it may have another functionality in some specific programs. For example, middle-clicking links in Firefox should open it in a new tab, and not closing the window. – JoePerkins Jul 9 '11 at 1:07

I have found the solution:

Actually this is an AutoHotkey script.

share|improve this answer
If you middle click by mistake on its icon, it freezes the entire OS... – android developer Mar 12 '13 at 16:37

Not the same, but a similar native win 7 behavior you might not be aware of: Middle clicking on the preview image that shows when you hover over a taskbar item will close the window. I'm working on getting used to this, rather than adding a third party tweak program.

share|improve this answer

Here is the solution:

Straigt out of coding =)

share|improve this answer
Thanks, that's an interesting software. It would be nice to know how the program manages the situation to change the button behaviour... something similar to AutoHotkey's approach, I suppose. – JoePerkins Jul 9 '11 at 1:11

There is no Windows setting or registry hack to do this. Your best bet would be a third-party program, such as AutoHotkey, or continuing doing what you're doing. Alternatively, you could right-click on the icon and click "Close window".

share|improve this answer

Alternative to virus-containing tool 7 Taskbar Tweaker, I suggest Taskix which contains NO virus.


Windows XP, Windows Server 2003, Windows Vista and Windows Server 2008

NOT for Windows 7 :(

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.