Page 1 of 1

PostPosted: Wed Jun 21, 2006 3:36 am
by Canz
Dear fellow Orbworkers,

I have (again) looked throught the forum to see whether alarms can be handled. There is a discussion which states that OrbForms cannot gain control of an alarm event, however, it is mentionned that OrbForm applications can "can be used to schedule an alarm".
Currently, this would be sufficient for my projects. Does anyone know of how to "schedule an alarm".

Thanks and best regards


PostPosted: Wed Jun 21, 2006 7:30 am
by nmc
With OrbForms, you will have to implement a native add-in for this.

In one of my own projects, I use crony (freeware app) to launch my own app at the desired times by writing my "alarm times" directly into its database.
1. I am not sure if all things needed (to let crony call your app) can be done using the public version of OrbForms (jeremy?)
2. This is only a workaround, but not a good way because:
a) after installing crony, your customers have to enable it, so you might test that in yout app and launch crony if not enabled
b) this fails with the original crony because its thype is "panl" and launch() only works with "appl"
c) so you have to modify crony.prc to be an app and install this modified version along with your app
d) the crony database format is undocumented (I can post what I've found out here, if anyone is interested)
e) there werent any crony updates for years, so i m not sure if it meets all the os5 criterias

PostPosted: Fri Jun 23, 2006 2:24 am
by dewey
That's a pretty extensive list of of "but"s.

I don't think the public version supports what you are doing with crony, but I don't remember exactly what was required. I will release 4.1 soon, which fixes many bugs and adds support for launching OrbC apps with a string argument (e.g. command line).

PostPosted: Fri Jun 23, 2006 4:04 am
by nmc
>That's a pretty extensive list of of "but"s.
I wrote down the list because someone (you, for example ;-) might think about writing a replacement for the crony solution w/o the but's

>but I don't remember exactly what was required
I think it was the numeric app-id (card-number or something)

PostPosted: Sat Jun 24, 2006 2:21 pm
by Canz
Thank you all for the replies.

For what I gather, apps created with the upcoming version 4.1 of OrbForms will be able to handle startup strings. If another application (which handles alarms) can launch the orb apps with predetermined startup string (depending on the alarm to be handled) then the problem will be solved.
Have I understood correctly?
Next question, who shall we pick to create this alarm handling program, for the greater good :D

Thanks a lot, can't wait for Version 4.1