FitzChivalry Posted November 13, 2007 Posted November 13, 2007 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
Krentenbol78 Posted November 13, 2007 Posted November 13, 2007 I don't think it is possible to not exit because the error comes probarly with a reason.
PsaltyDS Posted November 13, 2007 Posted November 13, 2007 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? ThanksOpt("RunErrorsFatal", 0)That will cause a silent error for most things by only setting @error = 1. 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
FitzChivalry Posted November 13, 2007 Author Posted November 13, 2007 Opt("RunErrorsFatal", 0)That will cause a silent error for most things by only setting @error = 1. Yes! thanks! Now that i'm searching through the help file for that option I can see it, but couldnt before :-)
Klaatu Posted November 13, 2007 Posted November 13, 2007 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now