Search found 5 matches

by jackdleach
Wed Feb 11, 2015 2:46 pm
Forum: Technical / Scripting
Topic: IgnoreErrors doesn't seem to work in Error Handler
Replies: 2
Views: 3134

Re: IgnoreErrors doesn't seem to work in Error Handler

Ah, I see... I thought that's what IGNOREERRORS was for, didn't realize I need to reset the handler itself as well.

I'll try it next time I'm playing around in there. Thanks
by jackdleach
Wed Feb 11, 2015 4:13 am
Forum: Technical / Scripting
Topic: IgnoreErrors doesn't seem to work in Error Handler
Replies: 2
Views: 3134

IgnoreErrors doesn't seem to work in Error Handler

Hello, I have an error handler set up that attempts to close the window and elegantly back out of the script. On occasion, the window it's attempting to close can't be found, and it enters a loop in outputting to the error log. Here's the pertinent script pieces: // first two executable lines: Let>I...
by jackdleach
Sat Jan 31, 2015 12:38 pm
Forum: Technical / Scripting
Topic: Output Line in Error Log
Replies: 4
Views: 3039

Re: Output Line in Error Log

>> is there a way to raise an error? <<

For example, I use UIAccessibleList to check the contents of a window before performing an action, and I can't find a substring in that list, I'd like to throw an error.

I can manage it easily enough using a custom SRT but an error would keep things semantic.
by jackdleach
Sat Jan 31, 2015 12:17 pm
Forum: Technical / Scripting
Topic: Output Line in Error Log
Replies: 4
Views: 3039

Re: Output Line in Error Log

Got it, thanks... must have missed the _LINE in the docs (I had been using LAST_ERROR but wanted to trace where it was throwing from).

As a side note, is there a way to raise an error?
by jackdleach
Tue Jan 27, 2015 4:22 pm
Forum: Technical / Scripting
Topic: Output Line in Error Log
Replies: 4
Views: 3039

Output Line in Error Log

Hello,

Is there a way to determine the line that threw an error?

Thanks,
-jack
Sign up to our newsletter for free automation tips, tricks & discounts