how to move the mouse in Visual C++

  • Thread starter Thread starter marcelo
  • Start date Start date
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.
 
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
 
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
 
Back
Top