[comp.windows.ms.programmer] Another stupid question: Sensing keystrokes

dewinter@watserv1.uwaterloo.ca (Jack a.k.a. Wildside) (06/07/91)

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.

-- 
Jack a.k.a. Wildside   ... 2nd regeneration of a Time Lord
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	"But that's not decent"
	"I am a pirate, I don't do decency!" - Don Carnage

cadsi@ccad.uiowa.edu (CADSI) (06/08/91)

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.       |
|----------------------------------------------------------------------------|