Page 1 of 1

Variable to generate Filename

Posted: Thu Jun 08, 2023 8:40 am
by gremlin
Hy,
if i generate a filename then it will be updated on the fly:
Snipaste_2023-06-08_09-38-11.png
Snipaste_2023-06-08_09-38-11.png (6.66 KiB) Viewed 1408 times
I helped myself by leaving out the seconds, but if the minute changes during execution, the variable changes and the file is no longer found at the end of the task.
Snipaste_2023-06-08_09-33-44.png
Snipaste_2023-06-08_09-33-44.png (6.46 KiB) Viewed 1408 times
I actually wanted to add a random function so that the file name is always different. but here the content is newly generated for each variable. Is it possible to somehow create the variable at the beginning of the task and then it remains the same throughout the procedure?
Thanks
steven

Re: Variable to generate Filename

Posted: Thu Jun 08, 2023 8:59 am
by Oleg
Turn this option ON
TurnThisOn.png
TurnThisOn.png (10.33 KiB) Viewed 1404 times
In this case RoboTask calculates the value before assigning it to variable

Otherwise, if it is unchecked then RoboTask calculates the value every time you use variable NewFileName1. And you can get another value every time.

Re: Variable to generate Filename

Posted: Thu Jun 08, 2023 9:15 am
by gremlin
Ah,
ok thank you. Ill try.