Share this post

Link to post

Share on other sites

The Kandie Man 5

The Kandie Man 5

In SCITE click tools then click Trace: Add Trace Lines. That will write everything to the SCITE console. There are also other options on there you can mess with.

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

The Kandie Man 5

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post

Link to post

Share on other sites

The Kandie Man 5

The Kandie Man 5

Use the Syntax check that comes with SCITE. Plus, autoit in many cases won't even run if there are syntax errors. Upon being executed it will just error right off the bat and give an error messagebox telling that there was an error on line whatever.

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post

Link to post

Share on other sites

littleclown 0

littleclown 0

Yes but I have many If, until, do, for, select, etc. SCITE don't check all possible situations, and I didn't test all, cuz I can't simulate everything. I afraid about syntax errors in critical moments, when some stupid guy is on the PC.

Share this post

Link to post

Share on other sites

Bert 1,269

Bert 1,269

If you compiled the script into a exe, and you tested it, then whats the problem? What you are saying makes no sence. The only way what you are saying is to happen is to have the script be decompiled. Do a ctrl+alt+F5 to test your code. Run Tidy. If it works, then your fine. If a user reports a bug, get them to screenshot the error screen when it happens, and save it to a word doc. You are making this WAY too hard on yourself.

Share this post

Link to post

Share on other sites

Bert 1,269

Bert 1,269

What you are talking about would involve having a second script run to catch the errors. It would have the errors be reported say to the event viewer, or to a log file. It would look for the error window that AutoIt makes, and do a text read to capture the data. Once you capture the data, you would have to decide what to do with it.

is a COM error handler as stated by the comment following it. It will therefore only work with COM objects. This type of error handling won't work if you just want it to go to a function when there is an error in standard autoit code. You have to manually write error handling functions into your code in every place where an error may occur. That is really the only way to do it correctly. The easiest way to do this is to simply write error handling into your script as you write it. That way it isn't a pain in the ass when you finish the script, because if you didn't do it while you were writing it, you now have to go back into the script and add the error handling in.

Sorry, but that is really the only way to do it. I know, because i have had to go back into my scripts and write error handling for them and it is quite painful.

Edited December 17, 2006 by The Kandie Man

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire