Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!udel!haven!decuac!mountn.dec.com!emass1.enet.dec.com!domenikos From: domenikos@emass1.enet.dec.com (George Domenikos) Newsgroups: comp.sys.mac.programmer Subject: How can I get Instantaneous Response from an Init that uses GNEfilter to look for keyboard events? Message-ID: <1896@mountn.dec.com> Date: 1 Sep 90 01:32:23 GMT Sender: news@mountn.dec.com Organization: DTC Lines: 31 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