AutoHotkey: Go To Parent Directory When Doubleclicking Border: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
Doubleclicking the left/right border when TC is maximized enters the corresponding parent directory. A neat side effect is that single clicking a border already activates the panel. | |||
RegRead, DoubleClickSpeed, HKEY_CURRENT_USER, Control Panel\Mouse, DoubleClickSpeed | RegRead, DoubleClickSpeed, HKEY_CURRENT_USER, Control Panel\Mouse, DoubleClickSpeed | ||
If DoubleClickSpeed = | If DoubleClickSpeed = | ||
Line 10: | Line 6: | ||
~LButton:: | ~LButton:: | ||
IfWinActive, ahk_class TTOTAL_CMD | |||
{ | { | ||
PostMessage 1075, 2002, , , ahk_class TTOTAL_CMD | If A_TimeSinceThisHotkey >= %DoubleClickSpeed% | ||
ClickCount = 0 | |||
MouseGetPos, xcoordinate | |||
If xcoordinate = 4 | |||
{ | |||
ClickCount++ | |||
PostMessage 1075, 4001, , , ahk_class TTOTAL_CMD | |||
} | |||
If (xcoordinate = A_ScreenWidth+3) | |||
{ | |||
ClickCount++ | |||
PostMessage 1075, 4002, , , ahk_class TTOTAL_CMD | |||
} | |||
If ClickCount = 2 | |||
{ | |||
PostMessage 1075, 2002, , , ahk_class TTOTAL_CMD | |||
ClickCount = 0 | |||
} | |||
} | } | ||
Return | |||
Back to [[AutoHotkey]] | Back to [[AutoHotkey]] |
Revision as of 01:26, 16 August 2005
Doubleclicking the left/right border when TC is maximized enters the corresponding parent directory. A neat side effect is that single clicking a border already activates the panel.
RegRead, DoubleClickSpeed, HKEY_CURRENT_USER, Control Panel\Mouse, DoubleClickSpeed If DoubleClickSpeed = DoubleClickSpeed = 500 ~LButton:: IfWinActive, ahk_class TTOTAL_CMD { If A_TimeSinceThisHotkey >= %DoubleClickSpeed% ClickCount = 0 MouseGetPos, xcoordinate If xcoordinate = 4 { ClickCount++ PostMessage 1075, 4001, , , ahk_class TTOTAL_CMD } If (xcoordinate = A_ScreenWidth+3) { ClickCount++ PostMessage 1075, 4002, , , ahk_class TTOTAL_CMD } If ClickCount = 2 { PostMessage 1075, 2002, , , ahk_class TTOTAL_CMD ClickCount = 0 } } Return
Back to AutoHotkey