Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
As far as I understand, pressing the key is not directed to the window of your application, but to any other, for example Explorer. Since such actions are not directed to your app, you will not be able to catch them in the standard way. For example, I have a calculator and a browser open, what I write in the browser does not fall into the calculator, and vice versa.
To catch such clicks as you want, you need a global hook, i.e. you will catch all clicks in Windows.
Global keyboard capture in C# application
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question