Discuss RoboTask here
crisp212
Posts: 21 Joined: Mon Dec 04, 2017 7:12 pm
Post
by crisp212 » Sat Dec 16, 2017 7:32 pm
Hi Oleg.
One more question
So I want to run my task from 19:05 to 19:15h every day. When the task runs, it cycles every 1s.
The 1 second cycle: no problem. Add cyclic in the triggering Events.
Running from 19:05h from 19:15h. Added the Scheduler to run every day. Then with the wizard, Start time 19:05:00 End time 19:15:00 Step (min) 1 How much 10
Click ok. Then I enable the task at 19:01 but it runs any way instead of running at 19:05.
What I am doing wrong?
Regards and thank you,
D.
Oleg
Site Admin
Posts: 3201 Joined: Thu Jan 01, 1970 1:00 am
Contact:
Post
by Oleg » Mon Dec 18, 2017 8:59 am
Look at my example below.
This task started every 2 seconds
BUT it perform your necessary steps only from 19:05 up to 19:15
You can use
if..then action to make any condition for your actions
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
Events=FOLDER
ExternalName=STRING|"Task285"
Hide=INTEGER|0
ID=INTEGER|1386272400
LogOnAsUser=INTEGER|1
Name=STRING|"from 19:05 up to 19:15"
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
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action1\Params]
case=STRING|"0"
case#1=STRING|"0"
connection=STRING|"0"
count=STRING|"2"
operator=STRING|"2"
operator#1=STRING|"4"
type=STRING|"2"
type#1=STRING|"0"
value1=STRING|"{Time}"
value1#1=STRING|"{Time}"
value2=STRING|"19:05"
value2#1=STRING|"19:15"
[Actions\Action2]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//do something"
Params=FOLDER
[Actions\Action2\Params]
comment=STRING|"do something"
[Actions\Action3]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//put here your steps"
Params=FOLDER
[Actions\Action3\Params]
comment=STRING|"put here your steps"
[Actions\Action4]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_CYCLIC"
Params=FOLDER
UniqueID=INTEGER|-1875291276
[Events\Event1\Params]
interval=STRING|"2"
notsatrtatactivation=STRING|"0"
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Do not forget to enable the task after importing.
Oleg Yershov