7m…ôcUJ\cdùrem Subject: Re: Running a program while the machine is offrem Date: Sun, 25 Jun 2000 13:46:32 +0100rem Newsgroups: discussion.epoc.OPLrem Hi,rem The code below wakes up the machine (if off) at a certain date, is that whatrem you need?proc main:local switchOnTime&local timH%,timStatus% rem the datetime you want the machine to switch on again switchOnTime&=DateToSecs(yyyy,mm,dd,hh,mm,ss) rem setup the timer ioopen(timH%,"TIM:",-1) rem start the timer ioc(timH%,2,timStatus%,switchOnTime&,switchOnTime&) rem you can switch off the machine here with "OFF" or the user could too rem (which you wouldn't have been able to do with OFF n%) iowaitstat timStatus% ioclose(timH%) print "Machine is on, on",datim$ getendprem Best Regards,rem Richard Betts, NEUONrem antonio brazao wrote in messagerem > Hi thererem >rem > I am trying to write an alarm-clock and can't see how I can run my programrem > to continuously monitor the system clock while the machine is off? Doesrem > anyone have any idea? How does the built-in alarm clock work?rem >rem > Thanksrem > Tonyrem >ÐР   \c¤efd\c¬efdý‚.ÆA…*TextEd.app…´‰;