任何人都可以解释这个 ahk 脚本 logics/commands

Can anyone pls explain this ahk script logics/commands

谁能告诉我下面给出的 ahk 脚本中 two sequential commas1 的目的是什么?

Pause:: Suspend Pause,,1 return

我想我找到了答案。

两个逗号表示有一个空白值,在ahk中表示'Off'。换句话说,如果它是:Pause, Off, 1

,它可能是相同的

1表示on。这意味着,它等于 Pause, Off, On

以上我只有 95% 的把握。

表示第一个参数为空

https://lexikos.github.io/v1/docs/Language.htm#commands

The comma separating the command name from its parameters is optional, except in the following cases:

When it's necessary to prevent the line from being interpreted as a legacy assignment or assignment expression. MsgBox, := This would be an assignment without the comma.

When the first parameter is blank. MsgBox,, Second, Third

来自 https://www.autohotkey.com/docs/commands/Pause.htm :

    Pause [, OnOffToggle, OperateOnUnderlyingThread]

OnOffToggle

    If blank or omitted, it defaults to Toggle. [...]

Pause,,1 等同于 Pause,Toggle,1

如果脚本暂停,您将无法使用同一个按钮取消暂停,因为热键已禁用。

在那种情况下,您需要在 Pause command parameters:

中使用 OperateOnUnderlyingThread

Pause,,1 使单个按钮(在本例中为暂停或中断按钮)同时用作暂停和取消暂停。它允许暂停命令 运行 第二次(即取消暂停)。

Pause:: 
    Suspend ; disables or enables all or selected hotkeys and hotstrings.
    Pause,,1
return