cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : Beginners : How to force a mouse click on certain sc...
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  How to force a mouse click on certain screen coordinates?

ShadowTek (23)
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.
|
Zaita (1450)
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
ShadowTek (23)
Ok, thanks. I haven't gotten into any of the GUI functions of C++, so I wasn't really sure where to start.
|
Zaita (1450)
No worries :)
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us