New User - Powerpoint Presentation

Discuss RoboTask here
Post Reply
Mitch
Posts: 1
Joined: Mon Nov 15, 2010 12:15 pm

New User - Powerpoint Presentation

Post by Mitch »

Trying to make a task where every day of the week a powerpoint slide will run for that particular day.
Ex monday.ppsx, tuesday.ppsx
It will start at midnight each day.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

New User - Powerpoint Presentation

Post by Oleg »

You should set some variables with names of files.
Like this:
None,Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturda y

Suppose the variable name is MyFiles
Next you can use names so:
{MyFiles({DayOfWeekNo})}.ppsx

DayOfWeekNo begins from 1. Therefore the first element (zero element) will not be used.

Also see small example below:

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|101188231
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task986"
Hide=INTEGER|0
ID=INTEGER|1521495323
LocalVariables=STRING|"MyFiles"
LogOnAsUser=INTEGER|1
Name=STRING|"days of week"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MYFILES"" with value ""None,Sunday,Monday,Tuesday,Wednesday,Thursday,Frid..."""
Params=FOLDER

[Actions\Action1\Params]
expand=STRING|"0"
varname=STRING|"MYFILES"
varvalue=STRING|"None,Sunday,Monday,Tuesday,Wednesday,Thursd ay,Friday,Saturday"

[Actions\Action2]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Now play the file:"""
Params=FOLDER

[Actions\Action2\Params]
icon=STRING|"1"
msg0=STRING|"Now play the file:"
msg1=STRING|"{MyFiles({DayOfWeekNo})}.ppsx"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
Post Reply