Jump to content

How to skip an AutoIt Error?


Guest Shantha
 Share

Recommended Posts

Guest Shantha

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.

Link to comment
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=

Link to comment
Share on other sites

Guest Shantha

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?

Link to comment
Share on other sites

  • Developers

Make sure you do a FileClose(HANDLE) for those files that you have finished with reading/writing....

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...