3

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

user4157124
  • 2,809
  • 13
  • 27
  • 42
jxtz
  • 51
  • 8

1 Answers1

3

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
user4157124
  • 2,809
  • 13
  • 27
  • 42
jboockmann
  • 1,011
  • 2
  • 11
  • 27