Page 1 of 1

user functions

Posted: Wed Jun 12, 2024 5:20 pm
by photoevents
I can't find a way to create functions that I can call from a main script:

like
run myfunction1
with function1 performing some actions and returning with or without value to the main script.

Please advice,
Christian

Re: user functions

Posted: Wed Jun 12, 2024 6:46 pm
by Oleg
Use the Start Task action. You can pass some parameters to the task and get the result.
To return the result, simply set the TaskResult variable to the desired value.

We have already discussed this problem not so long ago. Please take a look here. This topic also has the necessary examples.

Re: user functions

Posted: Thu Jun 13, 2024 8:00 am
by photoevents
Thank you for that answer.
I'm learning to work with robotask and I'm starting to convert my winautomation scripts to robotask scripts.
There is a learning curve, but it seems not as steep as I was afraid off.

Thank you to continue providing us with an affordable script development environment.

Christian