Short version:
How can I receive input messages in Windows with C ++ / C when the window is not active?
Background Information:
I am currently working on an input system, which should not depend on any window, so it can be, for example, can also be used in the console.
My idea is to create an invisible window that receives only messages, which is possible using HWND_MESSAGE as hWndParent. It only accepts input messages when it is active, and I do not want this. It should always receive input (if the application does not request it no longer does this, for example, because it has lost focus).
I know that this is possible, one way or another, many applications support global shortcuts (for example, media players (playback control) or messengers (opening a contact list)), I just donβt know how to do this. Did you know?
source share