Hello again, Just posting this in case it might save someone else wasting hours looking for a solution.
I needed to prevent my device from going to sleep while running a long operation, namely a timer which of course had a big loop. I correctly used a script with EvtResetAutoOffTimer(); but inserted into the EventLoop, assuming that the program would frequently access this function. I was wrong, so it's a mystery how the device knows how to turn itself off anyway when in a user loop. The correct place to put EvtResetAutoOffTimer(); was in the timer loop so now it works fine. I think when I am finished this present project I will build a series of mini projects for PalmDev website demonstrating a lot of basic things like this. Examples are pretty lean on ths website. Would this be a good idea or no? Barry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
