Dit script werkt helaas maar voor de helft. Hij start op de opgegeven datum, maar
eenmaal de datum voorbij stopt hij niet.
Ik had beide PAL scripts op auto-start gezet. Tussen 7 en 12 december startte hij mooi het eerste PAL script, maar eenmaal 13 december startte ook het 2de PAL script maar stopte het eerste PAL script niet
Hieronder mijn 1ste script : Kerst-low.PAL
Code: Selecteer alles
PAL.Loop:=True;
PAL.LockExeCution;
var DStart, DEnd : DateTime;
DStart := EncodeDate(2008,12,7);
DEnd := EncodeDate(2008,12,12);
While (Now>=DStart) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:14:30']);
Cat['1960 - 2099 Kerstmuziek'].QueueTop(smLRP, EnforceRules);
PAL.WaitForTime(T['xx:44:30']);
Cat['1960 - 2099 Kerstmuziek'].QueueTop(smLRP, EnforceRules);
PAL.LockExecution;
end;
While (Now>DEnd) do
begin
PAL.UnLockExecution;
PAL.Loop:=False;
PAL.LockExecution;
end;
PAL.UnLockExecution;
Hieronder mijn 2de script : Kerst-heavy.PAL
Code: Selecteer alles
PAL.Loop:=True;
PAL.LockExeCution;
var DStart, DEnd : DateTime;
DStart := EncodeDate(2008,12,13);
DEnd := EncodeDate(2008,12,31);
While (Now>=DStart) do
begin
PAL.UnLockExecution;
PAL.WaitForTime(T['xx:00:30']);
Cat['1960 - 2099 Kerstmuziek'].QueueBottom(smLRP, EnforceRules);
PAL.WaitForTime(T['xx:14:30']);
Cat['1960 - 2099 Kerstmuziek'].QueueTop(smLRP, EnforceRules);
PAL.WaitForTime(T['xx:29:30']);
Cat['1960 - 2099 Kerstmuziek'].QueueTop(smLRP, EnforceRules);
PAL.WaitForTime(T['xx:44:30']);
Cat['1960 - 2099 Kerstmuziek'].QueueTop(smLRP, EnforceRules);
PAL.LockExecution;
end;
While (Now>DEnd) do
begin
PAL.UnLockExecution;
PAL.Loop:=False;
PAL.LockExecution;
end;
PAL.UnLockExecution;