在Firefox中同时运行两个快捷命令
问题描述:
我想在Firefox中启动两个快捷方式,紧接着另一个快捷方式。第一个是来自Web Developer插件的自定义操作之一。第二个是简单的F5刷新页面。有没有办法只使用单个命令或按钮按下什么来运行这两种方法。也许一个JavaScript书签可以。我真的不知道任何事情,所以所有的帮助表示赞赏!在Firefox中同时运行两个快捷命令
感谢先进!
答
如果你想在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