Skip to Content
It is currently October 19th, 2018, 6:26 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 27th, 2008, 11:46 am 
Offline
Senior User
Senior User

Joined: October 10th, 2008, 6:30 pm
Posts: 190
Location: www.be1radio.com
Hi, i am currently using this script , how can i make it run everydays ?


==========================================
PAL.Loop := True;
var mytime : DateTime = now;
var I : Integer;
var start_time, end_time : DateTime;
start_time := T['11:00:00'];
end_time := T['23:30:00'];
if DayOfWeek(Now) = monday then
begin


if( mytime >= start_time) and (mytime <= end_time) Then
begin
WriteLn('Canvas Prog Hour!');
Cat['Advertisements (All)'].QueueCat(ipTop);
cat['Station IDs (All)'].QueueTop(smRandom,NoRules);
PAL.WaitForTime(T['+00:10:00']);
end;
end;

_________________
Rasco
BeOneRadio
www.be1radio.com
Twitter.com/BeOneRadio


Top
 Profile  
Reply with quote  
PostPosted: October 27th, 2008, 11:51 am 
Offline
Alumni
Alumni

Joined: October 14th, 2006, 9:38 am
Posts: 5986
Location: Deep in the heart of the PRNJ
Use the Event Scheduler.

_________________
- Stan Olochwoszcz
A proud licensed SAM user since 2002

Raritan Bay Radio


Top
 Profile  
Reply with quote  
PostPosted: October 27th, 2008, 12:08 pm 
Offline
Senior User
Senior User

Joined: October 10th, 2008, 6:30 pm
Posts: 190
Location: www.be1radio.com
My script alouds me to add files every 10 min.
is easier with pal script
i just need to know how to specify everyday?

_________________
Rasco
BeOneRadio
www.be1radio.com
Twitter.com/BeOneRadio


Top
 Profile  
Reply with quote  
PostPosted: October 27th, 2008, 12:38 pm 
Offline
Alumni
Alumni

Joined: October 14th, 2006, 9:38 am
Posts: 5986
Location: Deep in the heart of the PRNJ
Take out the day of week test.

_________________
- Stan Olochwoszcz
A proud licensed SAM user since 2002

Raritan Bay Radio


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Exabot [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group