AutoHotkeyを使ってChromeのタブ周りの操作を快適にする
追記:20120826。再起動したせいか Chrome_WidgetWin_1 に戻ってた。バージョンは同じ 21.0.1180.83 m。謎。
を複数のクラス名でもマッチするように以下のようにした。
if WinActive("ahk_class Chrome_WidgetWin_0") or WinActive("ahk_class Chrome_WidgetWin_1") or WinActive("ahk_class Chrome_WidgetWin_2") or WinActive("ahk_class Chrome_WidgetWin_3")
どうもchrome以外でタブを使うアプリも切り替えが効いちゃうので、orは諦めた。
参考:IfWinActive / IfWinNotActive
追記:20120823。chrome 21.0.1180.83 mからchromeのウィンドウのクラス名がChrome_WidgetWin_1 から Chrome_WidgetWin_2 に変更された。
注意:chrome19で Chrome_WidgetWin_0 から Chrome_WidgetWin_1 に変更されました。
ダブル中クリックでchromeのタブを復元する設定を書いた。
AutoHotkeyを使ってChromeのタブ切り替えをマウスホイールで行う - Cherenkovの暗中模索にっき の設定と合わせて
#IfWinActive ahk_class Chrome_WidgetWin_1
;mouse wheel to tab switch
~WheelUp::
MouseGetPos, x, y
if (y < 45) {
send, ^{PgUp}
}
return
~WheelDown::
MouseGetPos, x, y
if (y < 45) {
send, ^{PgDn}
}
return
;double middle click to reopen closed tab
~MButton::
MouseGetPos, x, y
if (y < 45) {
if ((A_PriorHotKey = A_ThisHotKey) && (A_TimeSincePriorHotkey < 300)) {
send ^+t
}
}
return
#IfWinActive