Didonet Posted January 25, 2008 Share Posted January 25, 2008 Hello I'm wondering about one program, and I need your help. 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 More sharing options...
LIMITER Posted January 25, 2008 Share Posted January 25, 2008 I think you should try with adlibenable Link to comment Share on other sites More sharing options...
weaponx Posted January 25, 2008 Share Posted January 25, 2008 I'm pretty sure Winamp has some remote plugins where you can manage it through a web interface. Link to comment Share on other sites More sharing options...
Didonet Posted January 25, 2008 Author Share Posted January 25, 2008 I'm pretty sure Winamp has some remote plugins where you can manage it through a web interface.That's not the point. 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 Link to comment Share on other sites More sharing options...
Didonet Posted January 26, 2008 Author Share Posted January 26, 2008 :-/ Link to comment Share on other sites More sharing options...
Swift Posted January 26, 2008 Share Posted January 26, 2008 While 1 musicon() (or whatever) Sleep(4500000) musicoff() (or whatever) Sleep(500000) WEnd Link to comment Share on other sites More sharing options...
erezlevi Posted January 26, 2008 Share Posted January 26, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now