AutoHotKey 在 firefox 上私下打开 url window

AutoHotKey open url on firefox in private window

我是 autoHotkey 脚本的新手,如何在 firefox 上私下打开某个 url window?

此脚本将在 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"

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

按 F1 私密打开此页面window:

F1:: Run, firefox.exe -private-window ""

在 AutoHotkey v2 Firefox 中新的私人标签页

; AutoHotkey v2
Run "firefox.exe " "-private-window www.google.com/"
WinWait("ahk_class MozillaWindowClass")
WinActivate