Keystroke trapping in background?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

....newbie warning...

I am looking for a way to trap (and process) keystrokes before they are
passed to the foreground/active application. Something similar to how, for
example, the Alt-Tab key combination switches between applications, without
the apps ever seeing that particular keycode. Also, what is the best way to
pass the majority of keycodes that don't require additional processing on to
the foreground app?

Thanks in advance,

Ed
 
In win32 you could use SetWindowsHookEx to hook WH_KEYBOARD or
WH_KEYBOARD_LL. I'm not sure if there is a .NET equivelent, but you could use
pinvoke.

Tom Wisnowski
MCP MCAD
 
Thank You Tom, Imran, And Alex. The information that you provided was very
helpful. I look forward to the upcoming mental anguish of understanding all
of it ;-)

Ed
 
Back
Top