How to edit multiple delays at once

Discuss RoboTask here
Post Reply
torbrjp
Posts: 2
Joined: Thu Sep 05, 2019 3:44 pm

How to edit multiple delays at once

Post by torbrjp »

Hello,

I have a task that has many "Delay" actions. I would like to select multiple Delay actions and change the duration of the delay to a standardized duration like 5 seconds.

I tried to open the Edit task screen, type in "Delay" into the Filter text box. Shift click to select multiple delays, and click edit. However, this only changes 1 Delay action.

Let me know if you have any suggestions!
Oleg
Site Admin
Posts: 3004
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: How to edit multiple delays at once

Post by Oleg »

Unfortunately you have to edit each step separately.
If you want to use the same pause in each delay action you can use variables.
Look at the example.
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|444033236
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task644"
Hide=INTEGER|0
ID=INTEGER|-1586425821
LogOnAsUser=INTEGER|1
Name=STRING|"Delay with variable"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""SEC"" with value ""10"""
Params=FOLDER

[Actions\Action1\Params]
expand=STRING|"0"
varname=STRING|"SEC"
varvalue=STRING|"10"

[Actions\Action2]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay {sec} sec"
Params=FOLDER

[Actions\Action2\Params]
delay=STRING|"{sec}"
dimension=STRING|"1"

Oleg Yershov
Post Reply