Hi
Now that it seems I need to write a 'Hack', does anyone have any examples of
writing a general hack. I've looked at the Hackmaster stuff but I didn't
think it was enough to get started (and I don't want to write something that
necessarily needs Hackmaster in order to install it).
I like the idea of using the HotSync interrupt idea Ben suggested but I may
not have the luxury of changing the hardware to generate the interrupt in
the first place. I saw something somewhere that suggested the sysHandleEvent
trap could be used as you know this will get called quite a lot (but with
obvious performance impact).
This whole business of getting something running in the background seem
dirty. It seems a shame there isn't a nicer way to do this than hacking
something. There must be lots of instances where people need to have some
low level code running in the background that still enables the user to run
up whatever application they need?
Gary
-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 12, 2000 3:19 PM
To: Palm Developer Forum
Subject: Re: background task
"Metalle Gary-GMETALL1" <[EMAIL PROTECTED]> wrote in message
news:23810@palm-dev-forum...
>
> Hello
>
> Perhaps I should have worded my question better. I don't actually want a
> background task in that sense but rather an application that is always
> running in the background. I want to be able to write a device driver that
> reads the serial port (done all that stuff), processes it and enqueues
> events into the system queue. I can't have the application always running
in
> the foreground as I want the user to be able to run up other applications
> such as memopad or whatever (then this user chosen application will pick
up
> the system events that I posted from my background application).
>
> How do commercial keyboard drivers etc do this?
You'll need to develop a hack, which wraps around one or more of the system
calls. The developer guide included with HackMaster (www.daggerware.com)
can provide more details.
>From posts on this forum, the keyboard drivers tend to use the HotSync
interrupt -- a keypress generates one of these, the driver does the first
intercept, sees that its a keypress, and turns it into a character stroke.
If its a real HotSync, they let it go through to the OS for normal
processing.
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/