How to check a program in the background if a key or combination is pressed?

I have an application that types at the point of the mouse; even if that means switching the focus of the window to some other program, such as notepad.

I am trying to press a key combination to start / stop input.

How can I do it?

+6
source share
1 answer

you should use Keyboard hooks, you can find many examples by doing a search.

here is an example from codeproject.com:

keyboardhook.aspx

+2
source

Source: https://habr.com/ru/post/905347/


All Articles