How do you use WScript object in Robotask VBscript action

Discuss RoboTask here
Post Reply
echoxxzz
Posts: 2
Joined: Sat Jan 28, 2023 6:37 am

How do you use WScript object in Robotask VBscript action

Post 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.
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

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

Post by Oleg »

Exit statement?
Read more here
Oleg Yershov
echoxxzz
Posts: 2
Joined: Sat Jan 28, 2023 6:37 am

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

Post by echoxxzz »

I don't think that's the purpose of Exit. It needs a qualifier like Do or Sub.
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

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

Post by Oleg »

Stop statement stops the script in RoboTask environment.
Oleg Yershov
Post Reply