This seems to work with double-clicking:
Code:
setTitleMatchMode regex
#installMouseHook
#keyHistory 20
#ifwinactive ahk_exe \\Cent\s*Browser\\
~^w::
winWaitNotActive,,,1
ifWinNotActive
winActivate
return
~LButton::
~MButton up::
mouseGetPos mx, my
winGetPos x, y, w, h
if (mx > x && mx < x + w && my > y && my < y + 64
&& (A_ThisHotkey != "~LButton" || A_PriorKey = "LButton" && A_TimeSincePriorHotkey < 500)) {
winWaitNotActive,,,1
ifWinNotActive
winActivate
}
return