Sign in to follow this  
Followers 0
giggity

Suppress autoit errors?

9 posts in this topic

Is there a way to suppress autoit errors while a script runs? I would like my scripts to quietly exit if an error of any kind is encountered without a error window popping up. :) I know it's not wise to do this for debugging purposes but it would be nice to have this feature regardless.

Share this post


Link to post
Share on other sites



What kind of errors are you trying to suppress? Why not jsut write error checking into your code?


_____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper

Share this post


Link to post
Share on other sites

Is there a way to suppress autoit errors while a script runs? I would like my scripts to quietly exit if an error of any kind is encountered without a error window popping up. :) I know it's not wise to do this for debugging purposes but it would be nice to have this feature regardless.

could use RunErrorsFatal option, if you use that then you'll need to check @error where the error(s) could accure and exit if need be.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

could use RunErrorsFatal option, if you use that then you'll need to check @error where the error(s) could accure and exit if need be.

Thank you, thats exactly what I was looking for.

Share this post


Link to post
Share on other sites

I've found that when you compile the script, error messages just don't show. It solved my problem.

You need to explain this one!

But one thing is for sure: Error do not disappear when the script is compiled. They might not show directly but they will turn up sometime so you better fix them.

Also its better to use au3check always before compiling.....


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Well, I can't recall what exactly happened. It had something to do with the TCP functions timing out. Uncompiled it returned a error and the script would exit. Compiled the script would just keep going, exactly as I wanted it to continue without any weird behavior of any kind.

Edit: Is Jos your real name?

Edited by Manadar

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