jimhoyle

New Member
Joined
Sep 24, 2009
Messages
24
What's the fastest way to close an application currently on the taskbar? In XP I used to do: right click an item (running application button on the taskbar) and then immediately press c. That would immediately close the application. In Windows 7, if I do the same, first I have to wait for the animation to bring the list of choices and then, if I press c, it'll only select Close window but not actually close it. I have to press enter. So not fast at all. What's the fast way?
 

Solution
The answer is AutoHotkey. And this is probably a good example for that purpose. (At least by quick tests it seems to work very nicely.)

^§:: ; IN TASKBAR: CLOSE AN ITEM WHEN HOVERING MOUSE ON TOP OF IT
Send {LButton}
Send !{F4}
return

loathe

New Member
Joined
Jan 16, 2009
Messages
1,717
Hello and welcome to windows7forums.

I tend to use Alt + F4 for closing windows/programs quickly. You would think that pushing c would close it rather than just highlight close though.
 

Tepid

New Member
Joined
Jun 11, 2009
Messages
1,342
You should be able to then hit enter since Close would be selected. Added key stroke, but oh well.
 

loathe

New Member
Joined
Jan 16, 2009
Messages
1,717
I guess its just as easy to right click and click close yeh? Same as selecting an open program out of the taskbar, you need and extra click now to choose the window after you bring up the preview windows. Ohwell.
 

RAK

Extraordinary Member
Joined
Jul 6, 2009
Messages
2,491
I normally press the top right hand "X"
I must admit that I have two programs,however, which drop down to the customise area ahen I do this. They are seldom used programs so it bothers me not.
 

jimhoyle

New Member
Joined
Sep 24, 2009
Messages
24
Yes. If I want to close for example 9 out of 10 programs quickly from the taskbar, it's a bit painful now. Maybe I should try to find some kind of key macro program and try to find some solution. Any suggestions?

The alt+f4 solution is weak for this since first I have to left click and open the program and then use alt+f4 (which also is relatively uncomfortable for the hand when you have to use it very frequently). I just want to close taskbar programs with 1 or 2 clicks without mouse movement in between the 2 clicks, that'd be nice.
 

jimhoyle

New Member
Joined
Sep 24, 2009
Messages
24
The answer is AutoHotkey. And this is probably a good example for that purpose. (At least by quick tests it seems to work very nicely.)

^§:: ; IN TASKBAR: CLOSE AN ITEM WHEN HOVERING MOUSE ON TOP OF IT
Send {LButton}
Send !{F4}
return
 

Solution

jimhoyle

New Member
Joined
Sep 24, 2009
Messages
24
That script had some problems, here's a new version (though it possibly still has some problems):

$MButton::
SetBatchLines, -1
CoordMode, Mouse, Screen
MouseGetPos,,, glob_WinID
WinActivate, ahk_id %glob_WinID%
IfWinNotActive, ahk_class Shell_TrayWnd
{
Send, {MButton}
}
Else
{
Send {LButton}
WinWaitNotActive, ahk_class Shell_TrayWnd,, 0.5 ; wait for the window to get active
If ErrorLevel = 1
Send, !{Tab} ; failed to get active in time specified, we'll just alt+tab instead
Else
Send !{F4}
}
Return
 

Last edited: