Computer Science Canada

Music Bomb

Author:  Canadian Rob [ Wed May 12, 2004 7:04 pm ]
Post subject:  Music Bomb

Hey, Im new to comp sci.ca but not new to turing bein programin with it for about 2 years... well Today the teacher was yellin at me for stuff i dident do so.. I decided to so something so I have a reason to be yelled at! lol Well heres the code

Bascily What it does Enter a time, file name hit enter Runs as a background process cant be ended on Windows ME below Xp and 2000 you can kill it but yea.. Set it like 2 min after the bell goes Wink

code:

var windowID:int:=-1
     var timeOfDay : string:=""
 var timeOfDayInput:string
 var fileName:string
put "Enter a time..HR:MIN:SEC"
get timeOfDayInput
put "Enter file name"
get fileName
Window.Hide (windowID )
        loop
        time ( timeOfDay )
        if timeOfDay = timeOfDayInput then
                Music.PlayFile (fileName)
        end if
        put "Greetings!!  The time is ", timeOfDay
end loop


Tell me what ya think Wink thnx

Author:  Dan [ Thu May 13, 2004 1:27 pm ]
Post subject: 

Very evil Twisted Evil

Alougth this whould make a cool alram clock as well.

Author:  Canadian Rob [ Thu May 13, 2004 2:31 pm ]
Post subject: 

Eh! Thats a good Idea ... lol never thought about that.. I should make it like scuduling and stuff.. Hrmm.. *Thoughts Comming to mind*

Author:  the_short1 [ Sun May 16, 2004 12:11 pm ]
Post subject: 

yea very evil indeed...

PM me and ill send yea some cool stuff that i made ** its not fit for compsci... its too evill Twisted Evil.... im gona add ur music bomb to it now Smile


: