Hello and Help

new topic     » goto parent     » topic index » view thread      » older message » newer message

>>>>>
First, hello.  Having recently gotten this mailing list, I've enjoyed
some of the posts here.  That said, I need help.  Could somebody give me
a routine that will 1) ask for a specific time  2) play a specified wav
file at that time  and 3) work in Win95?  Any help is appreciated.  I am
too new to this language to be able to figure out the Win95 stuff.
Laters,
<<<<<

You're in luck, sort of.  I have a rough program that asks for a specific=

time and plays the CD.  The CD routine, as well as the separate but
necessary sound/wav routine, is created by Jacques Deschenes.  However, h=
is
routines (at least the CD) don't seem to work under Windows 95.  I lament=

that.  Perhaps someone can help us there.

Would the wav file be hardcoded in?  Or, do you want to make it fancy and=

ask for a file?

The following routine will ask for a time.  It will keep comparing that
with the current time.  At that time, it will do something.  The specific=
s
for the wav file, and whether that works with win95, I don't know.

include input.e -- Irv Mullin's input.e file
--ask someone (including me) if you need it
include cdaudio.e -- Jacques' file
clear_screen()
sequence tyme  -- can't use the word 'time' as a var.
puts(1,"Enter time to play CD: ")
tyme =3D gets(0)
if find(':',tyme) =3D tyme[2] then tyme =3D '0' & tyme -- look for colon
-- position, can enter 9:00 instead of 09:00, but must be 24-hr time
end if
puts(1,"\n")
sequence d
sequence value_return
integer hour, minutes
value_return =3D value(tyme[1..2])
hour =3D value_return[2]
value_return =3D value(tyme[4..5])
minutes =3D value_return[2]
atom h,m
h =3D 0
m =3D 0
while h =3D 0 or m =3D 0 do
d =3D date()
h =3D d[4] =3D hour
m =3D d[5] =3D minutes
end while
-- do whatever you want to do at the entered time

The last time I checked, this worked basicly.  I don't think I went back =
in
to tamper with my program.  But I haven't used this code in a long time
because Jacques' files doesn't work with my config.

Hope this helps.

--Alan

P.S.  Welcome!
 =

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu