SendKeys and Keyboard Hook

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

Terry Olsen

I have an application that is hooking the keyboard and trapping the
PAUSE/BREAK button to perform a function.

I would like to activate that function from my VB .NET 3.5 app by
simulating the keypress. However, using SendKeys("{BREAK}") doesn't
activate it.

The hooking app usually sits minimized in the system tray. I've even
tried bringing it to the foreground before using SendKeys and still
nothing.

Is there a way to simulate a keystroke that will be trapped by a
keyboard hook?
 
Back
Top