Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Try and catch alternative

Is there an alternative to Try and Catch in AutoIt? I wonder if there is something similar.

like image 503
jxtz Avatar asked Feb 17 '26 10:02

jxtz


1 Answers

There exists no try-catch-construct in AutoIt. You have to use the @error macro:

call_your_function_here()
If @error Then
    ;do your error stuff
Else
    ;do your program stuff
EndIf
like image 183
jboockmann Avatar answered Feb 20 '26 06:02

jboockmann