一次在Firefox中运行两个快捷命令

问题描述 投票:0回答:2

我想在Firefox中启动两个快捷方式,紧接着另一个。第一个是来自Web Developer插件的自定义操作之一。第二个是简单的F5来刷新页面。有没有办法只使用一个命令或按钮或其他东西运行这两个。也许JavaScript书签可以。我真的不知道任何事情所以所有的帮助表示赞赏!

提前致谢!

javascript firefox command keyboard-shortcuts
2个回答
0
投票

您可以使用AutoHotKey使用单个键盘快捷键设置多个命令。

请查看此示例以获取帮助。 (这很容易做到。)

Multiple Commands to Single Hotkey


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
© www.soinside.com 2019 - 2024. All rights reserved.