topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 1:00 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Middle click to close windows in taskbar  (Read 9095 times)

spunch

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
IDEA: Middle click to close windows in taskbar
« on: May 26, 2006, 10:26 AM »
I tend to have a lot of windows and programs opened at any given time. I am lazy and I usually don't bother closing windows when I'm done working on them. This makes my taskbar appear messy and difficult to navigate through.

The windows taskbar is not very good at letting you close windows easily. It would be nice to be able to close windows on the taskbar with a mere click. A middle click. That's how you close tabs in firefox, I guess I got used to it and would like to see it applied to the taskbar.

:Thmbsup:

Martin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 11
    • View Profile
    • 2 Bit Pie
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #1 on: May 26, 2006, 10:29 AM »
I second that as an awsome idea!
<a href="http://www.m-s-d.net/">Martin</a>

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #2 on: May 26, 2006, 12:04 PM »
Good idea!  (I have Donation Credits burning a hole in my virtual pocket...)

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,069
    • View Profile
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #3 on: May 26, 2006, 12:30 PM »
That's how you close tabs in firefox, I guess I got used to it and would like to see it applied to the taskbar.

Strange - my mouse doesn't do that. Must be different drivers. Middle click on Firefox tabs has no effect, middle click elsewhere cycles though open apps (which I find quite useful). I'm using an MS IntelliMouse Explorer optical.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #4 on: May 26, 2006, 12:37 PM »
@ Carol: That might be installed extensions-related. I have the default install, and it works here (although, i don't have the mouse you have).
In opera, it also works like that, and makes much sense.

I've been a big fan of bblean, which is an alternative shell for windows based in linux's blackbox (and a great shell, BTW ;) ), and features the exact idea you're asking for. It was great, and one of the things i most looked for when i got back to using explorer. But unfortunatelly, i couldn't find it.
Let's see if someone can do it :)

JavaJones

  • Review 2.0 Designer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,739
    • View Profile
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #5 on: May 26, 2006, 02:28 PM »
After using Opera and FF I too thought of this idea. However I thought it might be a bit too easy to accidentally close things. I think it's worth coding it up to see how well it would work, but the accidental closing of useful windows does concern me. In a browser, especially Opera, I can just use the "undo"/history button and it can easily re-open a window with just about everything I was doing (including previously visited pages). That would be a lot harder to do with applications. Of course with any application that had unsaved data it would surely send up the normal "do you want to save before exiting?" prompt, so it couldn't be *too* dangerous.

- Oshyan

spunch

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #6 on: May 29, 2006, 08:17 PM »
Being the great idea that it is, maybe someone should tackle this.

imtrobin

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 125
    • View Profile
    • Donate to Member

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #8 on: May 30, 2006, 03:09 AM »
 :) Here's a script for you to try the effect.

Skrommel

;MiddleToClose.ahk
; MiddleClick a taskbar button to close it
; To run, save to file MiddleToClose.ahk
; and download and install AutoHotkey from www.autohotkey.com
;Skrommel @2006

#SingleInstance,Force
SetWinDelay,0

enabled=0

Loop
{
  Sleep,50
  oldwinid:=winid
  oldctrl:=ctrl
  MouseGetPos,x,y,winid,ctrl
  WinGetClass,class,ahk_id %winid%
  If (class<>"Shell_TrayWnd")
    lastwinid:=oldwinid
  If (class="Shell_TrayWnd" And ctrl="ToolbarWindow322" And enabled=0)
  {
    Hotkey,MButton,CLOSE,On
    WinActivate,ahk_id %winid%
    enabled=1
  }
 
  If ((class<>"Shell_TrayWnd" Or ctrl<>"ToolbarWindow322") And enabled=1)
  {
    Hotkey,MButton,CLOSE,Off
    WinActivate,ahk_id %lastwinid%
    enabled=0
  }
}

CLOSE:
Send,{LButton}
WinWaitNotActive,ahk_class Shell_TrayWnd,,1
If ErrorLevel=1
  Return
Send,!{F4}
Return
« Last Edit: May 30, 2006, 03:11 AM by skrommel »

spunch

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #9 on: June 03, 2006, 05:45 PM »
It doesn't work.

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #10 on: June 03, 2006, 06:49 PM »
I tried it quickly the other day and couldn't get it to work either, but I thought it might have something to do with the configuration of my scroll wheel/middle button.

So I fooled with the configuration, but still nothing happens when I middle click a taskbar button.

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Middle click to close windows in taskbar
« Reply #11 on: July 25, 2006, 08:45 AM »
I stumbled across this:

http://www.autohotkey.com/forum/viewtopic.php?p=50920

I commented out the titlebar middleclick options because all I was interested in was closing a window by middle clicking on its taskbar button.  Seems to work ok so far.