【发布时间】:2016-09-28 13:31:57
【问题描述】:
在 AutoIt 中是否有替代 Try and Catch 的方法?不知道有没有类似的。
【问题讨论】:
标签: error-handling try-catch autoit
在 AutoIt 中是否有替代 Try and Catch 的方法?不知道有没有类似的。
【问题讨论】:
标签: error-handling try-catch autoit
AutoIt 中不存在 try-catch-construct。你必须使用the @error macro:
call_your_function_here()
If @error Then
;do your error stuff
Else
;do your program stuff
EndIf
【讨论】: