Re: Playing CDs with Euphoria
- Posted by Alan Tu <ATU5713 at COMPUSERVE.COM> May 21, 1998
- 682 views
Earlier, C. K. Lester wrote: I think you have to keep updating your variable d. See below. > -----Original Message----- > Subject: Re: Playing CDs with Euphoria > > I tried this program. Why doesn't it run in a loop until 20 > minutes after > the hour? > > atom t > sequence d > d =3D date() <-- you can probably remove this line > t =3D 0 > while t =3D 0 do d =3D date() <-- add this line > t =3D d[5] =3D 20 -- otherwise, d[5] is always what you had read in= to it before the loop > end while > system("c:\\cdp\\cdp.exe 2", 0) > Thanks, C. K. I got it working. Now I have a mini-alarm clock. For my use, I won't bind it because I can just hop in and change the A SINGLE LI= NE to reflect the time and another (maybe) to change the track. Then, I can= leave the computer on and wake up with my favorite CD. (Of course, I can= 't distribute it because I launch the CD externally, but its good enough for= me right now). I should have seen the illogic in my buggy program, but I was rushing. = That's not something a relatively new programmer should do. But this brings up a good point. I wrote that code, buggy as it was, in less than= five minutes. Euphoria is fast to write in! I can't even do my homework= that fast! Lastly, as a conceptual issue (explaining how would be way over my head right now), but can I use Euphoria to write TSRs? Thanks again. --Alan =