How to force a mouse click on certain screen coordinates?

Sep 4, 2008 at 11:24pm
I am trying to find a way to automate the usage of strictly GUI applications that lack any command line options. If there is a way to effectively force mouse clicks on certain coordinates of the screen, then I can build a list of whatever coordinates reside within particular GUI buttons, and go from there.

Is there a way to do something like this in C++? If not, what would you suggest as an alternative?

Right now, I'm just trying to work with GUI applications for Win XP SP3.
Sep 4, 2008 at 11:44pm
You can yes.

You can set the mouse position. Then fire off a mouse click event. This is how automated testing software functions :)

Look in the win32api for cursor and messaging :)
Last edited on Sep 4, 2008 at 11:44pm
Sep 5, 2008 at 12:42am
Ok, thanks. I haven't gotten into any of the GUI functions of C++, so I wasn't really sure where to start.
Sep 5, 2008 at 12:43am
No worries :)
Topic archived. No new replies allowed.