首页 > 解决方案 > AutoHotKey 在私人窗口中打开 Firefox 的 url

问题描述

我是 autoHotkey 脚本的新手,如何在私人窗口中打开 firefox 上的某个 url?

这个脚本将在 Firefox 上打开 url。

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

^f::
Run, C:\Program Files\Mozilla Firefox\Firefox.exe "github.com"

但是我怎样才能让它在私人窗口中打开呢?

标签: firefoxautohotkey

解决方案


按 F1 在私密窗口中打开此页面:

F1:: Run, firefox.exe -private-window "https://stackoverflow.com/questions/61194402/autohotkey-open-url-on-firefox-in-private-window"

推荐阅读