1. Hello and Help
- Posted by John Worthington <woodmage at EARTHLINK.NET> Aug 26, 1998
- 560 views
- Last edited Aug 27, 1998
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, ___ _|ohn
2. Hello and Help
- Posted by Alan Tu <ATU5713 at COMPUSERVE.COM> Aug 26, 1998
- 553 views
- Last edited Aug 27, 1998
>>>>> 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! =
3. Re: Hello and Help
- Posted by John Worthington <woodmage at EARTHLINK.NET> Aug 27, 1998
- 560 views
Alan Tu wrote: > 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, his > routines (at least the CD) don't seem to work under Windows 95. I lament > that. Perhaps someone can help us there. Hmmm. Near as I can tell, this code would work for the timer portion. That just leaves me needing to figure out how to play wavs. I know there is a direct method under Win95 calling the appropriate DLL, but dunno what the DLL is or the code to do it is. <sigh> > Would the wav file be hardcoded in? Or, do you want to make it fancy and > ask for a file? Well, actually, I was thinking of hardcoding in a little bugle.wav I have. It's a reville type thing and is intended as an alarm clock. ;') > include input.e -- Irv Mullin's input.e file > --ask someone (including me) if you need it I need it. ;') > include cdaudio.e -- Jacques' file I don't have this either, but dunno if it would help since you said it doesn't like Win95. > Hope this helps. It does indeed help. Half the job done with this code. > P.S. Welcome! <smile> Thanks. ___ _|ohn
4. Re: Hello and Help
- Posted by Hawke <mdeland at NWINFO.NET> Aug 27, 1998
- 543 views
> Hmmm. Near as I can tell, this code would work for the timer portion. > That just leaves me needing to figure out how to play wavs. I know > there is a direct method under Win95 calling the appropriate DLL, but > dunno what the DLL is or the code to do it is. <sigh> take a real hard, very close look at Window.exw which is included in the base euphoria2 package. it shows how to play a wav in win95, which dll you need, how to call it, and since the filename is in a string, it could easily be 'fancified' to allow for input of that filename from the user or (was it irv? i think?) from that new .ini file program recently submitted to the list. -wave- --Hawke'
5. Re: Hello and Help
- Posted by JJProg at CYBERBURY.NET Aug 27, 1998
- 559 views
> If you are reading this text, then your mail reader does not support > the MIME (Multipurpose Internet Mail Extensions) standard. To take > full advantage of the features of this message, you need to upgrade > your mailer to a MIME V1.0 compliant package. Some parts of this > message may be in human readable form. --zzzz6d676251b6416cyberbury.nezzzz Here is an example program that plays a WAV file at a spesified time. It uses win32lib and winmm.dll. Jeffrey Fielding JJProg at cyberbury.net --zzzz6d676251b6416cyberbury.nezzzz