在 AutoIt 中以编程方式暂停脚本?
我可以使用什么函数来暂停 AutoIt 中的脚本?
我知道我可以像这样使用 sleep:
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
但是 AutoIt 中是否已经实现了暂停功能?
What function can I use to pause a script in AutoIt?
I know I can use sleep like this:
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
But is there a function for pause which has been implemented in AutoIt?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我总是使用热键和函数来暂停我的脚本:
这可以通过按热键(在本例中为 Pause/Break)或简单地调用
togglePause()
来完成。例子:I always used a hotkey and function to pause my script:
This can be done by pressing a hotkey (in this case Pause/Break) or by simply calling
togglePause()
. Example:睡眠已经是 AutoIt 中的“暂停”功能。
暂停脚本的唯一其他方法是在调试模式下单击托盘图标。
Sleep already is the "pause"-function in AutoIt.
The only other method to pause the script is to click the trayicon in debug mode.
您始终可以使用以下方法。我认为这是最有效率的。
You could always use the following method. I think it's the most efficient.