
Receiving keyboard events, even if app does not have focus
Lorin, this is possible but not with
C#, you'll have to go with C++ to
create a global system hook. There are a few posts with more info on this
subject in this newsgroup and in microsoft.public.dotnet.languages.vc. To
get you started you will need to use the SetWindowsHookEx() API.
--
Greg
http://www.claritycon.com/
Quote:
> I'd like to write a program that reminds the user to take a typing break
> after a certain amount of typing activity. However, to do this, I'd need
> an application that receives an event each time a key is pressed, even
> when the user is interacting with another program. Is this possible?
> Lorin Hochstein