V
V
vityaba32019-10-18 11:07:19
Python
vityaba3, 2019-10-18 11:07:19

How to do COM mouse emulation in Python3?

Some application software (For example, games) checks for the existence of an input device.
(It's not entirely correct to say this: if you send an event to SendInput, then it is marked with the LLMHF_INJECTED flag, by which you can understand that the device does not exist).
It seems to me that the easiest way to get around this behavior is to use a COM-COM loop: connect to one and send movements and clicks, the second should pretend to be a mouse.
Where can I get a COM mouse driver (xp, vista, 8.1) and where can I read about data exchange between a COM mouse and a computer (to simulate this in python)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vityaba3, 2019-10-20
@vityaba3

Almost the entire answer is here .
Say thanks for me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question