再来一个AHK:
#SingleInstance, force
~WheelUp::
TabJumper("Chrome_WidgetWin_1", 8, 88)
return
~WheelDown::
TabJumper("Chrome_WidgetWin_1", 8, 88)
return
TabJumper(psWindowClass, piStripeYStart, piStripeYEnd)
{
WinGet, idSearchWindow, ID, ahk_class %psWindowClass%
MouseGetPos, iMouseX, iMouseY, idHoverWindow
if (idSearchWindow=idHoverWindow
&& iMouseY>=piStripeYStart
&& iMouseY<=piStripeYEnd ) {
ControlFocus,, ahk_id %idHoverWindow%
if RegExMatch(A_ThisHotkey, "i).*wheelup.*")
{
ControlSend, ahk_parent, {Control Down}{Shift Down}{Tab Down}, ahk_id %idHoverWindow%
Sleep, 60
ControlSend, ahk_parent, {Tab Up}{Shift Up}{Control Up}, ahk_id %idHoverWindow%
}
else if RegExMatch(A_ThisHotkey, "i).*wheeldown.*")
{
ControlSend, ahk_parent, {Control Down}{Tab Down}, ahk_id %idHoverWindow%
Sleep, 60
ControlSend, ahk_parent, {Tab Up}{Control Up}, ahk_id %idHoverWindow%
}
}
}