Ik zou graag van het volgende palscript willen dat tie niet werkt tussen 21.00 en 9.00.
Iemand?
Code: Selecteer alles
PAL.Loop:=True;
Cat['Advertisements (All)'].QueueTop(smLRP, NoRules);
PAL.WaitForPlayCount(10);groet,
Jeroen
Code: Selecteer alles
PAL.Loop:=True;
Cat['Advertisements (All)'].QueueTop(smLRP, NoRules);
PAL.WaitForPlayCount(10);Code: Selecteer alles
PAL.Loop:=True;
PAL.LockExecution;
while (Now >= T['09:00:00']) and (Now <= T['20:00:00']) do
begin
PAL.UnLockExecution;
Cat['Advertisements (All)'].QueueTop(smLRP, NoRules);
PAL.WaitForPlayCount(10);
PAL.LockExecution;
end;
PAL.UnLockExecution;Code: Selecteer alles
var TodayIsMyDayE1 : Boolean;
TodayIsMyDayE1 := ((DayOfWeek(Now) = sunday));
PAL.Loop:=True;
PAL.LockExeCution;
if (TodayIsMyDayE1) and (Now >= T['06:00:00']) and (Now <= T['22:00:00']) then
begin
PAL.UnLockExecution;Code: Selecteer alles
if (TodayIsMyDayE1) and (Now >= T['06:00:00']) and (Now <= T['22:00:00']) thenCode: Selecteer alles
while not ((Now <= T['05:00:00']) and (Now >= T['19:00:00'])) do
Code: Selecteer alles
while (Now >= T['06:00:00']) and (Now <= T['18:00:00']) do
Code: Selecteer alles
PAL.Loop:=True;
var Num : Integer = 1;
PAL.LockExeCution;
while (Now >= T['06:00:00']) and (Now <= T['18:00:00']) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:23:00']);
Queue.AddFile('E:\Regio agenda\REGIO AGENDA ' + Num + '.mp3',ipTop);
Num := Num+1;
PAL.WaitForTime(T['xx:44:00']);
Queue.AddFile('E:\Regio agenda\REGIO AGENDA ' + Num + '.mp3',ipTop);
Num := Num+1;
PAL.LockExecution;
end;
PAL.UnLockExecution;