SendKeys and Keyboard Hook

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top