user functions

Discuss RoboTask here
Post Reply
photoevents
Posts: 49
Joined: Mon Jan 01, 2024 11:21 am
Contact:

user functions

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

Re: user functions

Post 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.
Oleg Yershov
photoevents
Posts: 49
Joined: Mon Jan 01, 2024 11:21 am
Contact:

Re: user functions

Post 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
Post Reply