2017-02-20 56 views
0

我想在Firefox中啓動兩個快捷方式,緊接着另一個快捷方式。第一個是來自Web Developer插件的自定義操作之一。第二個是簡單的F5刷新頁面。有沒有辦法只使用單個命令或按鈕按下什麼來運行這兩種方法。也許一個JavaScript書籤可以。我真的不知道任何事情,所以所有的幫助表示讚賞!在Firefox中同時運行兩個快捷命令

感謝先進!

回答

0

如果你想在Firefox中運行一次兩個快捷命令。

您可以使用此Autohotkey腳本。

;GroupAdd, Browser, ahk_class Chrome_WidgetWin_1 ; Chrome or Iron 
;GroupAdd, Browser, ahk_class IEFrame   ; Internet Explorer 
GroupAdd, Browser, ahk_class MozillaWindowClass ; FireFox 
;GroupAdd, Browser, ahk_class ApplicationFrameWindow ; Edge 

; Click on the keyboard Ctrl+Shift+e 
; if Firefox browser is active then execute the two Shortcuts Commands. 
^+e:: 

; [+ = Shift] [! = Alt] [^ = Ctrl] [# = Win] 
If WinActive("ahk_group Browser") 
{ 
send ^+i ;The first shortcut Command = open the inspector 
sleep 150 
send {f5} ;The second shortcut Command = Refresh the Page in Browser 
} 
return 

esc::exitapp