Jun 20, 2010

Clicking events on UI built with a graphic library

I have been working with my friends on an Auto-clicker program. It is used for clicking on the game. And the game is built with a graphic library. It draws everything manually.

We have found that:

In order to simulate a click on it, we have to simulate 'mouse down', wait for some time, and simulate 'mouse up'.

This is because the game draws itself every 20 ms (or longer). If we fire 'mouse down' and 'mouse up' in the same drawing round, the game will not recognize a click action.

And that's it.

PS. this does not apply for a program built with .NET standard toolkit.