How do I create a variable for the time in the "insert delay" task?
Thanks Carrroll
insert delay variable
insert delay variable
You may use the simple loop.
See the example below:
;*******************************
;* RoboTask Task file
;* Do not edit in text editor!
;*******************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1380072790
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task774"
Hide=INTEGER|0
ID=INTEGER|1842190892
LocalVariables=STRING|"TOTAL_PAUSE"
LogOnAsUser=INTEGER|1
Name=STRING|"Pause with variable"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_INPUTBOX"
Enabled=INTEGER|-1
Name=STRING|"Input Box"
Params=FOLDER
[Actions\Action1\Params]
default=STRING|"0"
prompt=STRING|"Enter pause in seconds"
variable=STRING|"TOTAL_PAUSE"
[Actions\Action2]
ActionID=STRING|"A_LOOP_SIMPLE"
Enabled=INTEGER|-1
Name=STRING|"Simple Loop"
Params=FOLDER
[Actions\Action2\Params]
begin=STRING|"1"
end=STRING|"{TOTAL_pause}"
[Actions\Action3]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER
[Actions\Action3\Params]
delay=STRING|"10"
[Actions\Action4]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
See the example below:
;*******************************
;* RoboTask Task file
;* Do not edit in text editor!
;*******************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1380072790
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task774"
Hide=INTEGER|0
ID=INTEGER|1842190892
LocalVariables=STRING|"TOTAL_PAUSE"
LogOnAsUser=INTEGER|1
Name=STRING|"Pause with variable"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_INPUTBOX"
Enabled=INTEGER|-1
Name=STRING|"Input Box"
Params=FOLDER
[Actions\Action1\Params]
default=STRING|"0"
prompt=STRING|"Enter pause in seconds"
variable=STRING|"TOTAL_PAUSE"
[Actions\Action2]
ActionID=STRING|"A_LOOP_SIMPLE"
Enabled=INTEGER|-1
Name=STRING|"Simple Loop"
Params=FOLDER
[Actions\Action2\Params]
begin=STRING|"1"
end=STRING|"{TOTAL_pause}"
[Actions\Action3]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER
[Actions\Action3\Params]
delay=STRING|"10"
[Actions\Action4]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
insert delay variable
I think I wasn't clear on what I wanted to do.
I just want to create a variable at the beginning of a Task and
assign a value of 1000ms. The subsequent "insert delay" actions
would use the 1000ms. If I wanted to change the delay times to 2000ms, I would just change the value of the variable to 2000ms and all of the "insert delay" actions in the Task would use the 2000ms.
Thanks Carroll
I just want to create a variable at the beginning of a Task and
assign a value of 1000ms. The subsequent "insert delay" actions
would use the 1000ms. If I wanted to change the delay times to 2000ms, I would just change the value of the variable to 2000ms and all of the "insert delay" actions in the Task would use the 2000ms.
Thanks Carroll
insert delay variable
No problem. See my example.
insert into first step the action
set variable TOTAL_PAUSE to <number_of_seconds>
instead of input box and the loop gives you required pause
insert into first step the action
set variable TOTAL_PAUSE to <number_of_seconds>
instead of input box and the loop gives you required pause