helaas niet het gewenste resultaat.
Ik krijg geen compile error.
Het resultaat is dat hij alleen de tijd tussen 6 en 7 pakt doet de opdrachten
maar niet de resterende tijden.
Iemand een idee waar de fout is?.
Alvast bedankt
Code: Selecteer alles
{*******************************************************************************
PAL script maandag t/m zondag
*******************************************************************************}
PAL.Loop:=True;
//<<--Maandag van 00:00 tot 23:59-->>
While DayOfWeek(Now) = Monday and ((Now >= T['18:57:20']) AND (NOW<=T['18:57:30'])) do
begin
PAL.LockExecution;
PAL.WaitForTime(T['19:29:40']); //Start Show News
WriteLn('Maandag');
Queue.AddFile('C:\Radio\News\NewsJingle.mp3',ipTop); // NewsIntro Tune
ActivePlayer.Fadetonext;
PAL.WaitForTime(T['20:30:00']); //End Show News
ActivePlayer.Fadetonext;
PAL.WaitForTime(T['20:30:01']); //Start Show News
WriteLn('Maandag');
Queue.AddFile('C:\Radio\Advertenties\Welcome_Back.mp3',ipTop);
ActivePlayer.FadeTonext;
PAL.UnLockExecution;
end;
// ******************************************************************************
//<<--Maandag van 07:00 tot 23:59-->>
While DayOfWeek(Now)= Monday and
((Now >= T['06:59:50']) and (Now <= T['07:00:00'])) or
((Now >= T['07:59:50']) and (Now <= T['08:00:00'])) or
((Now >= T['17:59:50']) and (Now <= T['18:00:00'])) or
((Now >= T['21:59:50']) and (Now <= T['22:00:00'])) or
((Now >= T['22:59:50']) and (Now <= T['23:00:00'])) or
((Now >= T['23:59:50']) and (Now <= T['23:59:59'])) Do
begin
PAL.LockExecution;
//PAL.WaitForTime(T['XX:00:15']);
PAL.WaitForTime(T['+00:00:15']);
//PAL.WaitForTime('XX:02:15'); // Begin Tune Om +2:25 na heel uur
WriteLn('Maandag');
dir['C:\Radio\Advertenties\Maandag'].Rescan;
Queue.AddDir('C:\Radio\Advertenties\Party',False, ipTop);
ActivePlayer.FadeTonext;
PAL.UnLockExecution;
end;