Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!ns-mx!ccad.uiowa.edu!cadsi From: cadsi@ccad.uiowa.edu (CADSI) Newsgroups: comp.windows.ms.programmer Subject: Re: Another stupid question: Sensing keystrokes Message-ID: <1991Jun7.222924.4723@ccad.uiowa.edu> Date: 7 Jun 91 22:29:24 GMT References: <1991Jun7.134722.10509@watserv1.waterloo.edu> Organization: CAD-Research, U. of Iowa, Iowa City, Iowa Lines: 16 From article <1991Jun7.134722.10509@watserv1.waterloo.edu>, by dewinter@watserv1.uwaterloo.ca (Jack a.k.a. Wildside): > This is more of a survey. How would people out there go about sensing > keystrokes? Windows Hook? Scanning the key states? I was thinking of > writing a little app that needs to figure out if the keys have been > pressed or not and would like some input on the best way to detect keystrokes. > I wrote a Windows Hook. Thats a mess, but it works. The only thing I hate is the hoops to jump through to figure out if you've hit a ' instead of a ". |----------------------------------------------------------------------------| |Tom Hite | The views expressed by me | |Manager, Product development | are mine, not necessarily | |CADSI (Computer Aided Design Software Inc. | the views of CADSI. | |----------------------------------------------------------------------------|