Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 08/02/2006 @ 18:57 par aldweb
visiteur |
Hello Eliram,
Capturing the event -10 is for sure the way to go. If you just exit the application (with the END statement) then the device will not power off until the auto off timer is reached.
But there is an easy workaround. You may very well call a so called "PP applet" (see user manual, CALLPP$ function) to force the device to turn off, with the following API declaration:
Procedure SysSleep(untilReset,emergency:Boolean); inline($4E4F,$A0B2); Then, you just have to call this API in your PP applet's CallPP function:
SysSleep(false,false);
Cheers, aldweb |