Spécial ! |
Version mobile de l'aldweb Site m.aldweb.com Ni Français, ni Anglais ?Essayez donc l'un de ces drapeaux :
|
|
Météo / Spam / www |
Météo Lyon
aldweb contre le SPAM
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1223 |
setting the alarm with iziBasic |
le 04/07/2005 @ 17:39 par 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
Réponse n° 1 -------- le 05/07/2005 @ 14:11 par aldweb
visiteur |
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
Réponse n° 2 -------- le 05/07/2005 @ 18:03 par Tom
visiteur |
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
Réponse n° 3 -------- le 05/07/2005 @ 19:20 par aldweb
visiteur |
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
Réponse n° 4 -------- le 08/07/2005 @ 15:05 par Tom
visiteur |
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
Réponse n° 5 -------- le 08/07/2005 @ 16:05 par aldweb
visiteur |
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
Réponse n° 6 -------- le 08/07/2005 @ 18:27 par Tom
visiteur |
That sounds very kewl! |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|
|
|
|
|