Based on the snippet provided, this code is running after a system notification of the global find. Unfortuntely, from what I've seen, any event posted to the system during a search routine will not be processed until after the return from the global find notification.
Therefore the EvtResetAutoOffTimer event will not get handled until after the search. I guess I could send the event, then defer the notification - is that how others have done this? thanks - bill "Kevin OKeefe" <[EMAIL PROTECTED]> wrote in message news:98288@palm-dev-forum... No, I mean right after you SysSetAutoOffTime. I have found that to actually change the timeout to a new value you have to reset the timer with the EvtResetAutoOffTimer to the new value. Kevin -----Original Message----- From: Bill Andreozzi [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:09 PM To: Palm Developer Forum Subject: Re: SysSetAutoOffTime Since the event will not be processed until after the global find has searched everything, I assume you mean that after I set the timer back to the original value, I should call the EvtResetAutoOffTimer? thanks - bill "Kevin OKeefe" <[EMAIL PROTECTED]> wrote in message news:98284@palm-dev-forum... After you set the autooff timer, you should reset it with a call to EvtResetAutoOffTimer. Kevin -----Original Message----- From: Bill Andreozzi [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 11:33 AM To: Palm Developer Forum Subject: Re: SysSetAutoOffTime btw: a snippet of my code is as follows: case sysAppLaunchCmdFind: { //find uses features that were not supported until 3.1. //Don't offer find features on older OSs. if (IsVersionAtLeast( 3, 1 )) { FindParamsPtr findParams = (FindParamsPtr)cmdPBP; Boolean bCurrentApp = (fuLaunch & sysAppLaunchFlagSubCall); UInt16 ito = SysSetAutoOffTime( 0 ); Search( findParams, bCurrentApp ); SysSetAutoOffTime( ito ); } break; }// end of sysAppLaunchCmdFind -- Bill Andreozzi STATus Pro, Inc. Phone: 425.869.0854 Mobile: 425.260.1127 E-mail: [EMAIL PROTECTED] "Bill Andreozzi" <[EMAIL PROTECTED]> wrote in message news:98280@palm-dev-forum... > > I've been trying to get this to work by setting to zero (during a global > find) - but the system still seems to turn off after a certain amount of > time (set by the prefs) - anyone used this before? > thanks - bill > > > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ------------------------------------------ The information in this transmittal and any attachments is privileged and confidential and is intended only for the recipient(s) listed above. You are hereby notified that any unauthorized distribution or copying of this transmittal or its attachments is prohibited. If you have received this transmittal in error, please notify Invivodata immediately at (831) 438-9550. ------------------------------------------ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ------------------------------------------ The information in this transmittal and any attachments is privileged and confidential and is intended only for the recipient(s) listed above. You are hereby notified that any unauthorized distribution or copying of this transmittal or its attachments is prohibited. If you have received this transmittal in error, please notify Invivodata immediately at (831) 438-9550. ------------------------------------------ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
