Jump to content

How to not display error messages?


Recommended Posts

Ok, I know there is a way to do this, I just cant quite remember... I've looked around on the forums and through my old scripts, but cant find the right option.

I have a autoit script that occasionally runs into some problems. When it does, it displays an error message to the user and then exits. I would like to instead have it write the error message to a log file, Not display it to the user, and Not exit. What is the correct way to have it not display the error messages? Is there a way to have it not exit but continue running as well? Thanks

Link to comment
Share on other sites

Ok, I know there is a way to do this, I just cant quite remember... I've looked around on the forums and through my old scripts, but cant find the right option.

I have a autoit script that occasionally runs into some problems. When it does, it displays an error message to the user and then exits. I would like to instead have it write the error message to a log file, Not display it to the user, and Not exit. What is the correct way to have it not display the error messages? Is there a way to have it not exit but continue running as well? Thanks

Opt("RunErrorsFatal", 0)

That will cause a silent error for most things by only setting @error = 1.

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...