试用后觉得很不错,暂时没发现问题。原文如下:
https://plus.google.com/115670442023408995787/posts/WYPqqk2j9UB(英文)
http://bbs.kafan.cn/thread-1759990-1-1.html(翻译)
在这只贴autohotkey的脚本文件(原文中有转换成exe文件)
; Mouse Wheel Tab Scroll 4 Chrome
; -------------------------------
; Scroll though Chrome tabs with your mouse wheel when hovering over the tab bar.
; If the Chrome window is inactive when starting to scroll, it will be activated.
#NoEnv; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn; Enable warnings to assist with detecting common errors.
#SingleInstance force; Determines whether a script is allowed to run again when it is already running.
#UseHook Off; Using the keyboard hook is usually preferred for hotkeys - but here we only need the mouse hook.
#InstallMouseHook
#MaxHotkeysPerInterval 1000; Avoids warning messages for high speed wheel users.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
Menu, Tray, Tip, Mousewheel tab scroll for Chrome (1.0.3)
WheelUp::
WheelDown::
MouseGetPos,, ypos, id
WinGetClass, class, ahk_id %id%
If (ypos < 45 and InStr(class,"Chrome_WidgetWin"))
{
IfWinNotActive ahk_id %id%
WinActivate ahk_id %id%
If A_ThisHotkey = WheelUp
Send ^{PgUp}
Else
Send ^{PgDn}
}
Else
{
If A_ThisHotkey = WheelUp
Send {WheelUp}
Else
Send {WheelDown}
}
Return
https://plus.google.com/115670442023408995787/posts/WYPqqk2j9UB(英文)
http://bbs.kafan.cn/thread-1759990-1-1.html(翻译)
在这只贴autohotkey的脚本文件(原文中有转换成exe文件)
; Mouse Wheel Tab Scroll 4 Chrome
; -------------------------------
; Scroll though Chrome tabs with your mouse wheel when hovering over the tab bar.
; If the Chrome window is inactive when starting to scroll, it will be activated.
#NoEnv; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn; Enable warnings to assist with detecting common errors.
#SingleInstance force; Determines whether a script is allowed to run again when it is already running.
#UseHook Off; Using the keyboard hook is usually preferred for hotkeys - but here we only need the mouse hook.
#InstallMouseHook
#MaxHotkeysPerInterval 1000; Avoids warning messages for high speed wheel users.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
Menu, Tray, Tip, Mousewheel tab scroll for Chrome (1.0.3)
WheelUp::
WheelDown::
MouseGetPos,, ypos, id
WinGetClass, class, ahk_id %id%
If (ypos < 45 and InStr(class,"Chrome_WidgetWin"))
{
IfWinNotActive ahk_id %id%
WinActivate ahk_id %id%
If A_ThisHotkey = WheelUp
Send ^{PgUp}
Else
Send ^{PgDn}
}
Else
{
If A_ThisHotkey = WheelUp
Send {WheelUp}
Else
Send {WheelDown}
}
Return
