redman8888 Posted January 21, 2007 Posted January 21, 2007 hi all, i'm new to autoit. i would like to turn off the runtime error popup message. and write into a log file. any internal function support this? Please help. thanks.
Zedna Posted January 21, 2007 Posted January 21, 2007 hi all,i'm new to autoit. i would like to turn off the runtime error popup message. and write into a log file. any internal function support this?Please help. thanks.Be more specific.What exactly is "runtime error popup message"?Is it from another application or from your own?Post your script here if you have it. Resources UDF ResourcesEx UDF AutoIt Forum Search
magician13134 Posted January 21, 2007 Posted January 21, 2007 Be more specific.What exactly is "runtime error popup message"?Is it from another application or from your own?Post your script here if you have it.I could be wrong, but I believe he's referring to the error you get when there's any bug in your program and it's compiled.The one like:"Autoit error, Line X"I, too would like to know how to remove that. Sometimes I accidently let errors slip past, and I would rather it just exit or have a custom one one something. Visit Magic Soft Inc. for some of my software
Zedna Posted January 21, 2007 Posted January 21, 2007 (edited) I could be wrong, but I believe he's referring to the error you get when there's any bug in your program and it's compiled.The one like:"Autoit error, Line X"I, too would like to know how to remove that. Sometimes I accidently let errors slip past, and I would rather it just exit or have a custom one one something.For that case always use Scite4AutoIt3 (for testing/running/compiling) and its natively embeded Au3Check & AutoItWrapper.Also look at Opt("RunErrorsFatal").Also make error checking in your scripts: if not fileexists()UBound()etc.Then you will not have runtime problems. Edited January 21, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
redman8888 Posted January 26, 2007 Author Posted January 26, 2007 Be more specific.What exactly is "runtime error popup message"?Is it from another application or from your own?Post your script here if you have it.ok...the runtime error like the RUN() unable to execute the external program due to file missing.i would like to write into log file instead of popup AutoIt error message.
improbability_paradox Posted January 26, 2007 Posted January 26, 2007 ok... the runtime error like the RUN() unable to execute the external program due to file missing. i would like to write into log file instead of popup AutoIt error message. That one is easy, and pretty much the only "Error" that you can stop from popping up. Look up RunErrorsFatal in the help file! opt("RunErrorsFatal",0) Put the preceding line of code at the beginning of your script, and then check the @error macro after using the run() function to see if there was a problem or not.
/dev/null Posted January 26, 2007 Posted January 26, 2007 hi all,i'm new to autoit. i would like to turn off the runtime error popup message. and write into a log file. any internal function support this?Please help. thanks.You can allways use /ErrorStdOut to redirect interpreter errors to STDOUT instead of having a MSGBOX popup. See help file "Running Scripts". __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
improbability_paradox Posted January 26, 2007 Posted January 26, 2007 You can allways use /ErrorStdOut to redirect interpreter errors to STDOUT instead of having a MSGBOX popup. See help file "Running Scripts".Very interesting! Although I think I will still be of the opinion that writing cleaner/better code (so that you don't HAVE the errors) is usually the way to go, this feature could be useful.
magician13134 Posted January 30, 2007 Posted January 30, 2007 (edited) That one is easy, and pretty much the only "Error" that you can stop from popping up. Look up RunErrorsFatal in the help file! opt("RunErrorsFatal",0) Put the preceding line of code at the beginning of your script, and then check the @error macro after using the run() function to see if there was a problem or not. @dev/null/ - Thank you. Is there anyway to put that into a script? Instead of AutoIt3.exe [/ErrorStdOut] [/AutoIt3ExecuteScript] file [params ...] Like an Opt() command? Edited January 30, 2007 by magician13134 Visit Magic Soft Inc. for some of my software
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