Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to move a mouse point to a specified location on windows and click

Status
Not open for further replies.

dfgregf

Programmer
Jun 26, 2004
1
0
0
GB
Hi,

I am a java programmer and am new to Microsoft C++. Therefore I have a few questions.
I would like to know how to move a mouse pointer to a specified location(eg, using this function moveMouse(int x, int y)) and click on top of windows XP.
If you could give me some answers on how to approach or give me example codes(helpful if you give me all of it), that would be great.

Thanks
 
You can use the "SetCursorPos" function to move the mouse cursor, and the "mouse_event" function to simulate mouse button clicks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top