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 Mike Lewis 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/click mouse automatically in VC++

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How to move and click the mouse, using visual c++? I don't need it to go outside the program's own window. I have a browser object, and I need to click inside this.

-Tesla
 
To move the mouse you should be able to use the SetCursorPos API. As far as 'clicking' the mouse, I would just call the OnClick() of whatever object you need clicked.

HTH.

~Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.

-Ben Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top