Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!pa.dec.com!hollie.rdg.dec.com!decuk.uvo.dec.com!nntpd.lkg.dec.com!jareth.enet.dec.com!edp From: edp@jareth.enet.dec.com (Eric Postpischil (Always mount a scratch monkey.)) Newsgroups: comp.sys.handhelds Subject: Re: HP48 Auto-Off procedure? Keywords: hp48, off Message-ID: <22680@shlump.lkg.dec.com> Date: 14 May 91 20:40:43 GMT References: <282efa57:3081comp.sys.handhelds@hpcvbbs.UUCP> <3515@charon.cwi.nl> Sender: newsdaemon@shlump.lkg.dec.com Reply-To: edp@jareth.enet.dec.com (Eric Postpischil (Always mount a scratch monkey.)) Organization: Digital Equipment Corporation Lines: 30 In article <3515@charon.cwi.nl>, jurjen@cwi.nl (Jurjen NE Bos) writes: >>Is there any way to get the HP48SX to execute a program before it does >>its automatic shutoff? > >You could set an alarm that does your procedure and shut the machine off. The >alarm could be moved regularly in a program that gets executed reasonably >often. I was going to say: Yes, there's a way. Push the menu button for the program or type its name. This will cause the program to execute before the 48 shuts off automatically. :-) But seriously, your message gives me another idea. One could turn on vectored entry (by setting flags -62 and -63). This will cause the programs \GaENTER and \GbENTER to be searched for and executed at every ENTER operation; one of those could reschedule the alarm. It would be easiest to use \GbENTER. Create a program with the name \GbENTER -- that's a Greek beta character followed by ENTER. The program should do a DROP (to get rid of the string it is passed), delete the pending alarm, and schedule a new one. One annoying thing is that searching for alarms is not completely simple -- one has to match the object in the alarm, since other alarms may have the same time, and the index may change if other alarms are activated or set. Another annoying thing is that this will consume time every time the user presses ENTER. -- edp (Eric Postpischil) "Always mount a scratch monkey." edp@jareth.enet.dec.com