how to move the mouse in Visual C++

M

marcelo

Hey,

I need help with this.
I want to know what is the mouse position (x,y) and move the mouse (anywhere
in the screen) in Visual C++ 2005.
I have found a LOT of code in internet but noone works in my pc. I'm
developing a Windows Form Application.


Thanks a lot for any help...I will really appreciated.
Regards,
Marcelo.
 
D

David Lowndes

I want to know what is the mouse position (x,y) and move the mouse (anywhere
in the screen) in Visual C++ 2005.
I have found a LOT of code in internet but noone works in my pc. I'm
developing a Windows Form Application.

Marcelo,

I guess you're looking for the .Net equivalent of the GetCursorPos,
SetCursorPos APIs - Cursor.Position looks likely to be what you need.

Dave
 
M

marcelo

Thanks a lot David, I will check it out.

David Lowndes said:
Marcelo,

I guess you're looking for the .Net equivalent of the GetCursorPos,
SetCursorPos APIs - Cursor.Position looks likely to be what you need.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top