Jump to content

The best way to create...


Didonet
 Share

Recommended Posts

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? :]

Link to comment
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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...