Page 1 of 1

How do you use WScript object in Robotask VBscript action

Posted: Mon Jan 30, 2023 8:17 pm
by echoxxzz
I have a VBScript program that I'd to automate using Robotask but it just fails every time it hits a WScript object. I searched the forums and found solutions to replace some of the WScript methods but I can't find a way to mimic the WScript.Quit() method.

Is this possible or do I need to use a whole bunch of If() statements instead of just quitting the program early.

Re: How do you use WScript object in Robotask VBscript action

Posted: Wed Feb 01, 2023 5:36 pm
by Oleg
Exit statement?
Read more here

Re: How do you use WScript object in Robotask VBscript action

Posted: Thu Feb 02, 2023 7:48 pm
by echoxxzz
I don't think that's the purpose of Exit. It needs a qualifier like Do or Sub.

Re: How do you use WScript object in Robotask VBscript action

Posted: Sat Feb 04, 2023 8:32 pm
by Oleg
Stop statement stops the script in RoboTask environment.