Sign in to follow this  
Followers 0
Didonet

The best way to create...

7 posts in this topic

Hello :D

I'm wondering about one program, and I need your help. :P

In my school there will be a music radio, which will be one computer (with winamp) and one speaker in each room.

...and I'm the one who have to create the software to turn off the radio for 5 minutes (for the breaks), and turn it on for 45 minutes(for the lessons).

what should I use? Adlibenable, or while, or...?

Can you recommend me something? :]

Share this post


Link to post
Share on other sites



I think you should try with adlibenable

Share this post


Link to post
Share on other sites

I'm pretty sure Winamp has some remote plugins where you can manage it through a web interface.

Share this post


Link to post
Share on other sites

I'm pretty sure Winamp has some remote plugins where you can manage it through a web interface.

That's not the point. :D

We need to stop and start winamp when the lessons stop and then start again.

Not someone to start/stop the music. The program to do it itself :P

Share this post


Link to post
Share on other sites

:-/

Share this post


Link to post
Share on other sites

While 1

musicon() (or whatever)

Sleep(4500000)

musicoff() (or whatever)

Sleep(500000)

WEnd

:D

Share this post


Link to post
Share on other sites

classes are usally occures every x minutes right, so either use the sleep method or time-of-day method which is best:

call the program when :

Below is a list of Time and Date macros. Notice that most return values are two-digits long.

The full list of macros can be found here.

Macro Description

@SEC

Seconds value of clock. Range is 00 to 59

@MIN

Minutes value of clock. Range is 00 to 59

@HOUR

Hours value of clock in 24-hour format. Range is 00 to 23

@MDAY

Current day of month. Range is 01 to 31

@MON

Current month. Range is 01 to 12

@YEAR

Current four-digit year

@WDAY

Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.

@YDAY

Current day of year. Range is 1 to 366 (or 365 if not a leap year)

this will help you write the script for all time even for leap year.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0