Exam Orph
Exam Orph

Reputation: 395

Win32API Mouse vs Real Mouse Click

I have recently started using win32api to simulate mouse events and was wondering if it was at all detectable?

For example, does the api follow the exact same process/run the exact same commands as if done when using a real mouse - or are there some slight differences which can be detected? Furthermore, is this the same case with win32com SendKeys (via Shell Script/Python)?

I ask, because in the past I have had a few applications detect the Java robot library - but they all seem to work fine when using the Python win32api. Thanks.

Upvotes: 5

Views: 4916

Answers (1)

Anders
Anders

Reputation: 101756

The SendInput function will insert input events into the same queue as a hardware device but the events are marked with a LLMHF_INJECTED flag that can be detected by hooks. To avoid this flag you probably have to write a custom driver.

Upvotes: 5

Related Questions