[AHK-] 滑鼠瀏覽單手快速關閉分頁 Ctrl+W

看板EzHotKey作者 (逸)時間8年前 (2017/03/15 07:59), 8年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
http://imgur.com/2IucozX
說明: Ctrl+W 是一個置於最上層的浮動視窗,點擊 Ctrl+W 按鈕後, 滑鼠游標會往左上方移動,並點擊一次滑鼠左鍵以取得焦點, 然後模擬鍵盤送出 Ctrl+W 熱鍵指令;下方的 X、4、5 選項 是用來選擇由哪個滑鼠側鍵模擬鍵盤送出 Ctrl+W 熱鍵指令, X 表示不指定,4、5 分別是指 mouse button 4、5。也可以 同時按下滑鼠左右鍵,模擬鍵盤送出 Ctrl+W 熱鍵指令。 (各牌滑鼠功能鍵定義不盡相同,可能相反,也可能無法使用) Ctrl+W 可以關閉瀏覽器分頁、檔案總管視窗,和部份視窗程式 (例如 Line) 撰寫這個腳本的緣由:#1Oo86cA_ (Browsers) 腳本: Gui, +ToolWindow +AlwaysOnTop Gui, Show, x800 y750 h100 w100, Ctrl+W Gui, Add, Button, x25 y15 w50 h50, Ctrl+W Gui, Add, Radio, x10 y73 w25 h20 Checked, X Gui, Add, Radio, x40 y73 w25 h20 vRadio4 , 4 Gui, Add, Radio, x70 y73 w25 h20 vRadio5 , 5 ~LButton & RButton::send ^w Return XButton1:: GuiControlGet, Radio4 If (Radio4=1) { send ^w } else { send {XButton1} } Return XButton2:: GuiControlGet, Radio5 If (Radio5=1) { send ^w } else { send {XButton2} } Return ButtonCtrl+W: MouseMove, -50, -120, 1, R send {LButton} send ^w Return GuiClose: ExitApp -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.24.214.129 ※ 編輯: Ayiyaya (114.24.215.48), 03/17/2017 11:05:58
文章代碼(AID): #1Oo8FRfW (EzHotKey)
文章代碼(AID): #1Oo8FRfW (EzHotKey)