Error handling 捉迷藏

Error handling 捉迷藏,error-handling,try-catch,autoit,Error Handling,Try Catch,Autoit,有没有其他方法可以尝试在AutoIt中捕获?我想知道是否有类似的东西。AutoIt中不存在try-catch构造。您必须使用: call_your_function_here() If @error Then ;do your error stuff Else ;do your program stuff EndIf

有没有其他方法可以尝试在AutoIt中捕获?我想知道是否有类似的东西。

AutoIt中不存在try-catch构造。您必须使用:

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