Hier een scriptje.
LET ECHTER OP !!
Hij stopt de loop van jingles op tijd.
Een half uur voor aanvang van je programma's
Hij blijft anders tijdens de programma's door lopen.
Hij draait immers 5 platen voor het script opnieuw van bovenaf aan herstart.
Ik hoop dat het duidelijk is.
Zoniet, dan hoor ik het wel.
Code: Selecteer alles
PAL.Loop:=True;
PAL.LockExecution;
var DStart, DEnd : DateTime;
DStart := EncodeDate(2007,12,24);
DEnd := EncodeDate(2007,12,26);
while ((Now>DStart)) and ((Now<DEnd)) and ((Now >= T['11:30:00']) and ((Now <= T['12:00:30']))) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['22:00:00']);
PAL.LockExecution;
end;
PAL.UnLockExecution;
PAL.WaitForPlayCount(5);
Cat['Jingles (All)'].QueueTop(smRandom, NoRules);
Verder zul je je script moeten wijzigen anders draait hij je laatste programma als eerst.
Code: Selecteer alles
Queue.Clear;
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251214.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251415.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251517.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251719.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251921.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\252122.mp3',ipBottom);
Je kan het ook samenvoegen in een script.
Code: Selecteer alles
PAL.Loop:=True;
PAL.LockExecution;
var DStart, DEnd : DateTime;
DStart := EncodeDate(2007,12,24);
DEnd := EncodeDate(2007,12,26);
while ((Now>DStart)) and ((Now<DEnd)) and ((Now >= T['11:30:00']) and ((Now <= T['12:00:30']))) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['11:59:53']);
Queue.Clear;
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251214.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251415.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251517.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251719.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\251921.mp3',ipBottom);
Queue.AddFile('C:\kerstopnames\1ekerstdag-2007\252122.mp3',ipBottom);
ActivePlayer.FadeToNext;
PAL.WaitForTime(T['22:00:00']);
PAL.LockExecution;
end;
PAL.UnLockExecution;
PAL.WaitForPlayCount(5);
Cat['Jingles (All)'].QueueTop(smRandom, NoRules);