P
P
PosikGG2021-06-26 19:55:03
Python
PosikGG, 2021-06-26 19:55:03

How to simulate a click?

Help. I wrote a program that, using screenshots, recognizes which key to press (the simulator is in the game, not the point).
Everything is recognized correctly, but the game does not skip the imitation of pressing a key, even through AHK. What to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rPman, 2021-06-26
@rPman

Try this (c++ as it would be sadamaza in python).
Another option, if the previous one is 'too complicated' but autohotkey is acceptable, I can offer the following option - open the windows virtual keyboard and use autohotkey to click on the necessary buttons with the mouse

N
Nikita Leviy, 2021-06-27
@komel

I recommend the pyautogui library https://pypi.org/project/PyAutoGUI/
This library allows you to do all user actions. Very large functionality for fast work and the documentation is very simple

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question