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 #1223

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1223  setting the alarm with iziBasic

04/07/2005 @ 17:39
by Tom

Anonymous



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!
Write to Tom   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
--------
05/07/2005 @ 14:11
by aldweb

Anonymous

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
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
--------
05/07/2005 @ 18:03
by Tom

Anonymous

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!
Write to Tom   Post an answer  Top

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

Anonymous

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
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° 4
--------
08/07/2005 @ 15:05
by Tom

Anonymous

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?
Write to Tom   Post an answer  Top

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

Anonymous

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
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° 6
--------
08/07/2005 @ 18:27
by Tom

Anonymous

visitor
That sounds very kewl!
Write to Tom   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 ^