How to throw an error programmatically

Advanced programming using WinTask scripting language

How to throw an error programmatically

Postby Betty on Fri Oct 10, 2014 8:30 am

Is there a way to throw an error in WinTask. I have a situation where I want to invoke my OnError action, but I am using ClickOnText which does not throw and error. Can I throw one myself?
Posts: 22
Joined: Thu May 12, 2005 11:21 am

Re: How to throw an error programmatically

Postby TechSupport on Mon Oct 13, 2014 7:40 am


ClickOnTextOCR does not throw an error if the text to click is not found, but it returns a non-zero return code. So you can test the return code, and if not 0, programmatically (with an If block) you call the same error procedure as the one you have used in OnAction Error.

WinTask Tech Support
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am

Return to Scripts programming

Who is online

Users browsing this forum: No registered users and 9 guests