Jump to content
Sign in to follow this  
FitzChivalry

How to not display error messages?

Recommended Posts

FitzChivalry

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

Share this post


Link to post
Share on other sites
Krentenbol78

I don't think it is possible to not exit because the error comes probarly with a reason.

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
FitzChivalry

Opt("RunErrorsFatal", 0)

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

:P

Yes! thanks! Now that i'm searching through the help file for that option I can see it, but couldnt before :-)

Share this post


Link to post
Share on other sites
Klaatu

Another thing to look at is the command line switches to AutoIt itself. Particularly the /ErrorStdOut switch. I know in some of my dealings that this was what solved the problem I was having anyway.


My Projects:DebugIt - Debug your AutoIt scripts with DebugIt!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.