I want to send direct input to a (possibly) inactive window in python.
So far i have found a solution to send direct input via ctypes and i have a solution to simulate input to a window, which doesn't work with some games as the one i am testing with (GTA V) is using direct input, using postMessage()
via py32win.
So how would i now go about simulating those direct inputs while the target window is possibly not active? Is this even possible?
I would think it should be, because AutoHotkey for example can manage to send direct in such a case.
If you would like to experiment yourself i can provide the postMessage() version, otherwise i would like to keep the question code-free.