Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1280
Setting the Alarm
07/11/2005 @ 20:51 by Tom
I would like to set an alarm that continues to work after changing applications, and with the power turned off. An author of another program gave me this snippet of API code. Does anybody know how to convert this into iziBasic code?
Use PalmOS API function AlmSetAlarm(...) to set alarm for application. And check cmd parameter in the PilotMain function:
UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { if(cmd == sysAppLaunchCmdAlarmTriggered) {//alrm event ... do your action } ... }
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Answer n° 1 -------- 08/11/2005 @ 19:17 by Khertan
visitor
You can't do this with only iziBasic, for 2 reason iziBasic can t call direct API from Palm and iziBasic don t respond to a sysAppLaunchCmdAlarmTriggered.
But you can do this with a PP Applet ...
- Create a PP program which respond to sysAppLaunchCmdAlarmTriggered and launch your iziBasic program
- Create a PP Applet that register your PP program from iziBasic ...
sorry for my poor english
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Answer n° 2 -------- 09/11/2005 @ 12:21 by Tom
visitor
I was hoping there would be a "work around" to this problem. I guess I will have to learn PP Applet's now... this will not be easy.
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Answer n° 3 -------- 10/11/2005 @ 20:15 by aldweb
visitor
Maybe Khertan will provide you with his source code because these 2 components, the dummy PRC that will launch the iziBasic main application and the PP applet required to trigger the alarm, can be used again and again with almost no change. If he cannot provide you with these (as I am the one who gave him the trick but I do not know at what stage he is in his project), then I will write them and give away the source code here.
Cheers,
@+ aldweb
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Answer n° 4 -------- 11/11/2005 @ 08:23 by Khertan
visitor
Hi, i ll try to make it ... but this time i m very busy ...
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky