AutoHotkey: Backspace In Drive Root Opens My Computer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Bugfix) |
||
Line 1: | Line 1: | ||
Usually pressing '''Backspace''' in drive root does nothing, this is to prevent landing in '''''My Computer''''' by mistake, when holding down the key too long. Some people may prefer to reach the highest hierarchy level instead. | Usually pressing '''Backspace''' in drive root does nothing, this is to prevent landing in '''''My Computer''''' by mistake, when holding down the key too long. Some people may prefer to reach the highest hierarchy level instead. | ||
$BS:: | $BS:: | ||
IfWinActive, ahk_class TTOTAL_CMD | IfWinActive, ahk_class TTOTAL_CMD | ||
{ | { | ||
WinGetText, PanelText, A | WinGetText, PanelText, A | ||
IfInString, PanelText, :\> | IfInString, PanelText, :\> | ||
PostMessage 1075, 2122, , , ahk_class TTOTAL_CMD | PostMessage 1075, 2122, , , ahk_class TTOTAL_CMD | ||
} | Else | ||
Send, {BS} | Send, {BS} | ||
} | |||
Else | |||
Send, {BS} | |||
Return | Return | ||
Revision as of 05:17, 7 May 2006
Usually pressing Backspace in drive root does nothing, this is to prevent landing in My Computer by mistake, when holding down the key too long. Some people may prefer to reach the highest hierarchy level instead.
$BS:: IfWinActive, ahk_class TTOTAL_CMD { WinGetText, PanelText, A IfInString, PanelText, :\> PostMessage 1075, 2122, , , ahk_class TTOTAL_CMD Else Send, {BS} } Else Send, {BS} Return
Back to AutoHotkey