aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1359

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1359  Power Button Event

07/02/2006 @ 16:03
by Eliram

Anonymous



Hi,
I've started playing with my new iziBasic (It's really great), and I have a small question:

My program uses the page up/down buttons, so I used KEYEVENTS PARTIAL and then DOEVENTS to capture the keys.
But the power button doesn't work now when the program is running.
I thought about capturing event -10 (power). but what should I do with it? exit the program?

Is there a way I can make the power on/off button work normally? is there any function I can use?

Eliram
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
08/02/2006 @ 18:57
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
16/02/2006 @ 15:12
by Eliram

Anonymous

visitor
Thanks, I'll try it later on. Looks useful.
  Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^