Sign in to follow this  
Followers 0
Guest Shantha

How to skip an AutoIt Error?

4 posts in this topic

Is there are anyway that we can skip an "AutoIt Error" and continue the script?

I don't understand much about the " @Error " macro, if we can do something with it.

Share this post


Link to post
Share on other sites



What kind of error are you getting and what function are you using? If you are using Run/RunWait, check the RunErrorsFatal option. The @Error macro usually contains the error return code of some of the AI functions.

=MX=

Share this post


Link to post
Share on other sites

Actually I open a text file (read only) then transfer the data to a system. When there is a system (application) error, I write them in to the new text file.

When an application error occurs, the script opens the file and write it and auto close it. When I explicitily give the FileClose. It gives me an error. So, I just skip the FileClose part.

But sometimes I get this from "AutoIt Error":

Line 83 (File....

FileOpen ($errlog, 1

Error: Unable to open file, the maximum number of open files has been exceeded.

Any solutions?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0