Is there an alternative to Try and Catch in AutoIt? I wonder if there is something similar.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With