1

I have a form that is running but not in the focus. Now I want to press CTRL + NUM1 so the form which is not in the foreground catches it.

How can I achieve this?

ThiefMaster
  • 310,957
  • 84
  • 592
  • 636
meph
  • 209
  • 1
  • 5
  • 16

1 Answers1

1

It should be possible with a keyboard hook, which your application installs when it starts up and remove it on an app close.

This should get you started, you need to know/understand fundamentals of Win32 API for this! http://www.codeproject.com/Articles/7294/Processing-Global-Mouse-and-Keyboard-Hooks-in-C

Numan
  • 3,918
  • 4
  • 27
  • 44