S
S
Stratimon2016-01-22 07:55:29
OOP
Stratimon, 2016-01-22 07:55:29

C++ click on coordinates in game using SendMessage how?

C++ click on coordinates in game using SendMessage how ?
I climbed Google but I did not fully understand how it works!
It is necessary to click on the coordinates in the game with the left mouse button.
Please write a code that will put a dot in the center of the paint. As an example, I'll look into it later.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2016-01-22
@maaGames

SendMessage будет работать только в том случае, если игра использует очередь сообщений Windows для получения событий мыши, а это не факт.
Получаешь дескриптор окна (пэйнта или игры) и посылаешь этому окну сообщение WM_LBUTTONDOWN.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question