aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1223

Forum - Forum
iziBasic - iziBasic


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

actif  Sujet n° 1223  setting the alarm with iziBasic

le 04/07/2005 @ 17:39
par Tom

Anonyme



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!
Ecrire à Tom   Poster une réponse  Haut

[]   


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

Anonyme

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
Ecrire à aldweb   Poster une réponse  Haut

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

Anonyme

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!
Ecrire à Tom   Poster une réponse  Haut

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

Anonyme

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
Ecrire à aldweb   Poster une réponse  Haut

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

Anonyme

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?
Ecrire à Tom   Poster une réponse  Haut

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

Anonyme

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
Ecrire à aldweb   Poster une réponse  Haut

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

Anonyme

visiteur
That sounds very kewl!
Ecrire à Tom   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^