我有一个游戏脚本
~Rbutton&M :: SendInput t你有权保持沉默.你说的任何话都可以并将在圣安德烈斯第二区最高法院使用.{进入}根据圣安德烈斯的法律,你有权与律师交谈.{enter} t如果你不能提供一位律师,一位将为您指定.{enter} t您是否了解这些权利,因为他们已被读给您?{enter}
我希望我的脚本enter在发送下一行之前等待2秒钟.我怎样才能做到这一点?
如果您要发送制表符,则需要更改 t `t
因此,将热键的代码更改为块而不是单行(通过不将命令全部放在一行上,并return在其末尾添加)来执行此操作.然后你可以使用2秒延迟sleep(使用毫秒).
~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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11886 次 |
| 最近记录: |