K
K
kokapuk2021-09-17 11:31:54
C++ / C#
kokapuk, 2021-09-17 11:31:54

How to get a keyboard button click event outside of a window?

Hello, there was such a question, I created a simple wpf window and in this window I can catch button click events. How can I catch button presses globally, even if the window of a completely different program is active.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-09-17
@kokapuk

This is called a global hook .
There are several implementation options, and it's easy to google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question