D
D
Dima_E2019-06-11 10:49:27
Python
Dima_E, 2019-06-11 10:49:27

Where is the keyboard driver stored? Or how exactly to emulate button presses?

The goal is to write a bot, for this you need to emulate button presses, but the game blocks this, creating a similar question previously received an answer that you can use bible, Keyboard.
Almost all types of keystroke emulations usually do not pass or rarely pass, but if you record keystrokes, everything works.
Looking at the source, I realized that it collects a bunch of data from Windows about how the click occurs, which is why the game protection skips it.
At 3-4 clicks, she blocks it again.
From this follows the conclusion that when sending data about pressing the keyboard, the protection of the game compares with the data of the driver, if they do not match, then pressing is blocked.
My attempts to find the driver were not successful.
Going into device manager/keyboard/details/class icon path
Received: %SystemRoot%\System32\setupapi.dll,-3
After I got into the registry and tried to look for matches through the search engine, I did not find it.
So, where can I find the keyboard driver \ %SystemRoot%\System32\setupapi.dll,-3 ?
Can it be changed? So that the data after sending matches the topic in the driver.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2019-06-11
@NeiroNx

The game checks for time intervals: a person cannot press a button with a fixed frequency and duration of pressing. Interovals should change randomly within a given range.

V
VeryLongAgoDid, 2019-06-11
@VeryLongAgoDid

pyautogui python library. If you don't want to reinvent the wheel.
Of the minuses - this is a complete interception of the keyboard, i.e. run and do not touch anything. Although it may be possible to limit execution to one program, it was superfluous for me and I did not go so deep

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question