I
I
Ivan Karabadzhak2012-03-27 14:17:55
C++ / C#
Ivan Karabadzhak, 2012-03-27 14:17:55

Interception of pressing additional laptop buttons

I want to write my own software to intercept laptop keystrokes. It is necessary to intercept clicks regardless of the current application or even if nothing is running or inactive (desktop).

Do I need to write a hook, put it in *.dll, and inject into all processes and wait for clicks? Or how?

Please explain the architecture of the application.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vScherba, 2012-03-29
@vScherba

Options:
1. You can put a global hook (should be implemented in a dll, global ones do not work in exe), when registering a hook, such a dll will be loaded into all desktop processes.
2. Look towards RIT ( Raw Input Thread ). I have never tried it in practice.
3. Find or write a keyboard filter driver (which is much more difficult). Unlike the first 2 options that work in user mode, it will work in kernel mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question