尝试并抓住替代品

Try and catch alternative

在 AutoIt 中是否有替代 Try and Catch 的方法?不知道有没有类似的。

AutoIt 中不存在try-catch-construct。你必须使用 the @error macro:

call_your_function_here()
If @error Then
    ;do your error stuff
Else
    ;do your program stuff
EndIf