Setting state of virtual key / MouseButton without triggering events
Is it possible to set the virtual key state / mouse button state for all programs on the computer without firing related events at the same time (for example, to click the left mouse button at the moment without sending the mouse event down). Could this be achieved by installing a fake keyboard or mouse driver for a fake keyboard or mouse that, when prompted for the current state of the key, will respond with an answer of your choice or in any other way?
Edit: This should affect programs where I don't have code to work in other threads ect ...
source to share
Well, I don't have a complete answer for you, but ...
The Win32 SetKeyboard State () function changes the keyboard state for the thread that invoked it.
I know this does not affect the whole system, but if you only need to change the state of the keyboard for the applications you are developing, then it can be caused by each program, reading in the array passed to it from the temporary file to Hard.
Otherwise ... I don't know anything else ...
source to share