[comp.sys.mac.system] How can I get an Init using the GNEfilter method to process keyboard events instantaneously?

domenikos@emass1.enet.dec.com (George Domenikos) (09/01/90)

Hi there,

I am having an INIT that installs its self successfully and is using the 
GNEfilter method to look for events such as keyboard and perform certain
action when a certain key sequence is pressed.


Question how can I get my INIT  to process events immediatelly?


It seems that when I am compiling or linking something using MPW the events
are queued and the GNEfilter  processes the events after the compiling or 
linking is done.
How can I have instantaneous action all the time and not some times?
For example I have seen ScreenDumper applications doing that. They can jump
into the screendumper routine any time you press for instance shift-command-3
or whatever and they do not wait for a long compile or link to finish first.

HOW CAN I GET INSTANTANEOUS RESPONSE FROM THE GNE FILTER?
Do I have to install a VBL task for that that checks for Events all the time
and if a certain key is pressed can jump into my routine and performed
the desired action?
Do I have perhaps to raise the interrupt priority of the GNEfilter and how
can I do it?
Any help in the subject will be appreciated!


Thanks in advance

george domenikos