|Re: Startup script for 49G+|
Message #15 Posted by James M. Prange (Michigan) on 6 July 2005, 5:34 p.m.,
in response to message #6 by Raymond Del Tondo
Edited for corrections. STARTOFF (if found in the path) is what
the calculator executes when it reaches the inactivity timeout. It
doesn't include turning off the calculator, so you have to
explicitely include the OFF command in the program if you want it
to do that.
But I thought the Startup var of the 4g series would be evaluated
every time the calc is turned on, not only after a warmststart.
If it's the latter case, then the Startup var seems to be of limited use.
Indeed it's the latter, but there's a work-around. There's
also a reserved variable STARTOFF, that's executed only when the
49 turns off automatically, either after the default 300 seconds
or the ticks value stored in the TOFF reserved variable. STARTOFF
is not evaluated when you press the OFF key.
So store a program to be executed at every turn-on in a variable
named, say 'AUTOEXEC'.
Store the program
\<< OFF AUTOEXEC \>>
\<< STARTOFF \>>
to the OFF key, and turn on USER mode. This way the program will
be executed regardless of which way the calculator turns off, as
long as USER mode is active.
If you also want it to be executed when warmstarting, then include
AUTOEXEC in the STARTUP program
Caution; not tested, but the above makes sense to me.
Recently there was a thread (either here or in c.s.hp48)
related to this topic, where I suggested to use kinda
startup library, which can perform various tasks.
At least that's what I use on my HP-48;-)
Will that also work on the 49 series, where libraries aren't
configured just by turning the calculator on?
Edited: 6 July 2005, 7:44 p.m.