PAL.Loop := True; var mytime : DateTime = now; var I : Integer; var start_time, end_time : DateTime; start_time := date + EncodeTime(23,30,00,0); end_time := date + EncodeTime(07,30,00,0); if DayOfWeek(Now) = Wednessday then begin if( mytime >= start_time) and (mytime <= end_time) Then begin WriteLn('Canvas Prog Hour!'); Queue.AddFile('C:\CLOCK\non_slip.mp3',ipTop); cat['Station IDs (All)'].QueueTop(smRandom,NoRules); PAL.WaitForTime(T['+00:01:00']); end; end;
PAL.Loop := True; var mytime : DateTime = now; var I : Integer; var start_time, end_time : DateTime; start_time := date + EncodeTime(23,30,00,0); end_time := date + EncodeTime(07,30,00,0); if( mytime >= start_time) and (mytime <= end_time) Then begin Queue.AddFile('C:\CLOCK\non_slip.mp3',ipTop); cat['Station IDs (All)'].QueueTop(smRandom,NoRules); PAL.WaitForTime(T['+00:01:00']); end;
PAL.Loop := True; if (now >= T['23:30:00']) and (now <= T['7:30:00']) Then begin Queue.AddFile('C:\CLOCK\non_slip.mp3',ipTop); PAL.WaitForTime(T['+00:20:00']); end;
PAL.Loop := True; var now : DateTime; if (now >= T['23:30:00']) or (now <= T['7:30:00']) Then begin Queue.AddFile('C:\CLOCK\non_slip.mp3',ipTop); PAL.WaitForTime(T['+00:20:00']); end;
PAL.Loop := False; if (now >= T['23:10:00']) or (now <= T['10:30:00']) Then begin Queue.AddFile('D:\1.mp3',ipTop); PAL.WaitForTime(T['+00:20:00']); end;