Weather / Spam / www |
Lyon Weather
aldweb against spam
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1223 |
setting the alarm with iziBasic |
04/07/2005 @ 17:39 by Tom
|
I am trying to write a program to keep track of clock rings while punching out for lunch. I need to trigger a 30 minute timer. The problem is, the program automatically shuts off after 3 minutes. Is there a way to minimize a iziBasic program to keep it running in the background? Or, is there a way for iziBasic to set the timer on the PalmOS WorldCLock?
Thanks! |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1 -------- 05/07/2005 @ 14:11 by aldweb
visitor |
The program shuts off after 3 minutes because it is required to do so by Palm OS, as configured in the Preferences panel (Auto-off parameter in the Power panel).
They are workarounds to ask Palm OS to remain active for a longer time than 3 minutes (whih is the upper limit offered by the standard Preferences panel). For instance, my SysInfo shareware offers this option. But there are other tools available around to get the same result.
Cheers
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2 -------- 05/07/2005 @ 18:03 by Tom
visitor |
A work around to keep the Palm power on for 30 seconds is not the ideal solution, because it consumes battery power.
What I would like to do, is have my program written in iziBasic, automatically set the alarm on the World Clock based on certain circumstances defined in the program. Then I can turn off the pda. Is there a way to do this?
Thanks! |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3 -------- 05/07/2005 @ 19:20 by aldweb
visitor |
Yes, this is possible. Anyway, almost everything is possible in Palm programming
I checked quickly what happens when you set an alarm in the World Clock application in my Tungsten C (might be different in other devices):
1. A preference is set: PcLK 1, with the date/time very probably saved in the DateTime format as defined in the Palm OS SDK (did not check though) => This one is only needed within the World Clock application to show the previously alarm set. But, if an alarm is set, would you want your application to overpass it?
2. An alarm notice is registered in the System Alarm Manager => There, there is no access to this setting in "native" iziBasic. So, you will have to write a "PP applet" to access it.
Cheers
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4 -------- 08/07/2005 @ 15:05 by Tom
visitor |
PP applet's are a little over my head. Maybe you can consider adding an alarm command (to control World Clock) to the next version of iziBasic... please? |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5 -------- 08/07/2005 @ 16:05 by aldweb
visitor |
Hello Tom,
An alarm command is indeed a good idea.
I will consider it this way: 1. an application can set a kind of a timer so that it can be launched automatically at a given date+time. 2. when the time has come, the application is launched and a function returns the information if the application was launched "manually" or in automatic. 3. then, to control World Clock or any other application is your job, using the RUN command for instance.
Cheers, aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 6 -------- 08/07/2005 @ 18:27 by Tom
visitor |
That sounds very kewl! |
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|
|
|
|
|