Autohotkey 如何在自动热键中添加等待时间?

Autohotkey 如何在自动热键中添加等待时间?,autohotkey,Autohotkey,我有这个游戏脚本 ~r按钮&M::SendInput你有权保持沉默。 你说的任何话都会在最高法院对你不利 圣安德烈亚斯第二区。{按圣安德烈亚斯的法律进入} 安德烈亚斯,你有权和律师说话 请不起律师,我们将为您指定一名。{enter}t Do 您理解这些权利,因为它们已经读给您了?{enter} 我希望我的脚本在每次输入后等待2秒钟,然后再发送下一行。我该怎么做 如果要发送制表符,则需要更改t`t 因此,将热键的代码改为块而不是单行(不要将命令全部放在一行上,并在其末尾添加return)。然后,您

我有这个游戏脚本

~r按钮&M::SendInput你有权保持沉默。 你说的任何话都会在最高法院对你不利 圣安德烈亚斯第二区。{按圣安德烈亚斯的法律进入} 安德烈亚斯,你有权和律师说话 请不起律师,我们将为您指定一名。{enter}t Do 您理解这些权利,因为它们已经读给您了?{enter}


我希望我的脚本在每次输入
后等待2秒钟,然后再发送下一行。我该怎么做

如果要发送制表符,则需要更改
t
`t

因此,将热键的代码改为块而不是单行(不要将命令全部放在一行上,并在其末尾添加
return
)。然后,您可以使用
睡眠
(使用毫秒)造成2秒延迟


@顺便说一句,iramos,
`t Do…
发送
{Tab}{Space}Do
(这是一个常见的错误,所以只是一个提示)。我明白每个人都认为我是想让它有一个选项卡不,我不是,它实际上是想键入“t”
~Rbutton & M:: 
    SendInput, t You have the right to remain silent. Anything you say can and will be used against you in the Supreme Court of San Andreas, 2nd District.{enter} 
    sleep, 2000
    SendInput, t As by the laws of San Andreas,you have the right to speak to an attorney.{enter} t If you cannot afford an attorney, one will be appointed for you.{enter}
    sleep, 2000
    SendInput, t Do you understand these rights as they have been read to you?{enter}
return