I use the following script. Our outlets wrk frm mornin 8.00 to 10.00 evening ... just run a do while loop
Code:
While(now >= T['08:00:00']) and (now <= T['22:30:00']) do
begin
SubDir['C:\Documents and Settings\All Users\Documents\My Music\Music\JAZZ'].Rescan;
SubDir['C:\Documents and Settings\All Users\Documents\My Music\Music\JAZZ'].QueueBottom(smWeighted, EnforceRules);
Cat['Jingles (All)'].QueueBottom(smRandom,NoRules);
Cat['Station IDs (All)'].QueueBottom(smRandom, NoRules);
PAL.WaitForQueue(0);
end
The script for adjusting volumes can be put in there.
Now prepare another PAL Script which checks if player is paused or idle and run that continuously
Code:
While(now >= T['08:00:00']) and (now <= T['22:30:00']) do
begin
if (DeckA.status=1 )and (DeckB.status=1) THEN
Begin
IdlePlayer.QueueSong(Queue.NextInQueue);
QueuedPlayer.Play;
End;
end;