Page 1 of 1

Cron for user commands

Posted: 26 May 2020 15:51
by fred48fm
Hi,

Is there any way in PF to execute a command on a regular basis, like a cron job ?
That could be really usefull :-)

For ex, we want to alternate our RadioText from a main text to others, based on the current show/track or a list of alternate texts.
To achieve this, I need to use the Windows task scheduler + batch commands + PF command line tool.
That could be nice to have some user commands for wich you could loop and set an execution time interval or so.


Thank for your time

Fred

Re: Cron for user commands

Posted: 26 May 2020 21:23
by radio42
Yes, beside scheduling real programs/scripts in the Program Scheduler, you can also scheduler a so called Reminder - i.e. right-click and select 'Add Reminder....
A Reminder is either a real reminder (text) - or you can simply use it to execute any control-command at that time.

In addition (and I guess this better suites your needs!) you can run a Timer in you Events/Commands section (see general settings) by clicking on the 'TI' button at the bottom of the Events list. Here you can define the timer intervall to enable it.
Then go to the Application.OnTimer even in the list to define your command(s) to execute with each timer event.

Re: Cron for user commands

Posted: 27 May 2020 12:08
by fred48fm
Yeah !
The OnTimer() is exactly what i'm looking for... Thank you ! :-)

Last question, to test new configs, I usualy use a demo version. In the last version the TI button seems greyed out. Normal ?
Not a big issue, as i can trigger it manualy for test.

Best regards

Re: Cron for user commands

Posted: 27 May 2020 14:12
by radio42
In what last version?
In the Demo Version it shouldn’t be grayed out - as it is equivalent to the Enterprise Edition.

Re: Cron for user commands

Posted: 27 May 2020 17:18
by fred48fm
The last one 4.2.0.2.

Re: Cron for user commands

Posted: 27 May 2020 18:11
by radio42
The v4.2.0.2. Demo version?!
Yes, in the Demo version, the 'TI' button is disabled.