HOUR + 1

Discuss RoboTask here

HOUR + 1

Postby bil24884 » Sat Dec 21, 2019 2:27 pm

I have playlist filenames that use date and hour such as Sat1200.alb.
Trying to write NEXT HOUR's playlist to a folder with a different name
Tried creating a variable {PFN} that equals next hour {Hour(+1)} but it does not work. It still shows THIS HOUR and not next hour. Is there an easy way to a variable = next hour instead of this hour?
bil24884
 
Posts: 2
Joined: Fri May 11, 2018 2:34 pm

Re: HOUR + 1

Postby Oleg » Sat Dec 21, 2019 7:03 pm

Look at my 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|1251730006
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task163"
Hide=INTEGER|0
ID=INTEGER|-121147657
LogOnAsUser=INTEGER|1
Name=STRING|"add hour"
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

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""H"" with value ""{hours}"""
Params=FOLDER

[Actions\Action1\Params]
expand=STRING|"1"
varkind=STRING|"1"
varname=STRING|"H"
varvalue=STRING|"{hours}"

[Actions\Action2]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""h"""
Params=FOLDER

[Actions\Action2\Params]
incement=STRING|"1"
vaiable=STRING|"h"

[Actions\Action3]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""current hour = {hours}"""
Params=FOLDER

[Actions\Action3\Params]
icon=STRING|"1"
msg0=STRING|"current hour = {hours}"
msg1=STRING|"next hour = {h}"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"

Oleg Yershov
Oleg
Site Admin
 
Posts: 2586
Joined: Thu Jan 01, 1970 1:00 am

Re: HOUR + 1

Postby bil24884 » Sat Dec 21, 2019 10:43 pm

You made it so easy. Thank you so much for your help!
bil24884
 
Posts: 2
Joined: Fri May 11, 2018 2:34 pm


Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot] and 28 guests

cron