Skip to content

Instantly share code, notes, and snippets.

@nnyj
Last active May 3, 2025 18:17
Show Gist options
  • Save nnyj/61ed925ec2cf1efc0bd8e143bf6f2785 to your computer and use it in GitHub Desktop.
Save nnyj/61ed925ec2cf1efc0bd8e143bf6f2785 to your computer and use it in GitHub Desktop.
Autohotkey script to mimic the behaviour of Clover/QTTabbar when double clicking an empty space within the explorer window to go up one level.
#NoEnv
#SingleInstance Force
SendMode Input
SetWorkingDir %A_ScriptDir%
#If (WinActive("ahk_class CabinetWClass") or WinActive("ahk_class #32770"))
~LButton::
if (A_PriorHotkey != "~LButton" or A_TimeSincePriorHotkey > 300) {
KeyWait, LButton
} else {
MouseGetPos, xpos, ypos
; WinGetPos, X, Y,,, A
; MsgBox, The active window is at %X%`,%Y%, The cursor is at X%xpos% Y%ypos%.
PixelGetColor, color, %xpos%, %ypos%
background = 0x191919
; (change variable 'background' depending on your theme)
; dark theme = 0x191919 // light theme = 0xFFFFFF
if (color == background && xpos >= 150 && ypos >= 165) {
Send !{Up}
Sleep, 300
}
}
Return
#If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment