Cron for user commands

You are missing a feature or need an enhancement? Post your suggestion here!
Post Reply
fred48fm
Posts: 55
Joined: 28 Aug 2019 09:52

Cron for user commands

Post by fred48fm » 26 May 2020 15:51

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

User avatar
radio42
Site Admin
Posts: 6373
Joined: 05 Apr 2012 16:26

Re: Cron for user commands

Post by radio42 » 26 May 2020 21:23

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.

fred48fm
Posts: 55
Joined: 28 Aug 2019 09:52

Re: Cron for user commands

Post by fred48fm » 27 May 2020 12:08

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

User avatar
radio42
Site Admin
Posts: 6373
Joined: 05 Apr 2012 16:26

Re: Cron for user commands

Post by radio42 » 27 May 2020 14:12

In what last version?
In the Demo Version it shouldn’t be grayed out - as it is equivalent to the Enterprise Edition.

fred48fm
Posts: 55
Joined: 28 Aug 2019 09:52

Re: Cron for user commands

Post by fred48fm » 27 May 2020 17:18

The last one 4.2.0.2.

User avatar
radio42
Site Admin
Posts: 6373
Joined: 05 Apr 2012 16:26

Re: Cron for user commands

Post by radio42 » 27 May 2020 18:11

The v4.2.0.2. Demo version?!
Yes, in the Demo version, the 'TI' button is disabled.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests