How to capture mouse movements?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sahani
    New Member
    • Feb 2010
    • 1

    #1

    How to capture mouse movements?

    how do i create a programme to capture mouse movements??
    and i want to write something using mouse pointer during the presentation?
    and what are the ways to implement software to capture mouse movements?
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    I'm not sure what you mean by "capture." Do you mean you want to move the mouse programatically ?
    Code:
    Cursor.Position = new Point(Cursor.Position.X + 10, Cursor.Position.Y + 10);
    Will set a new position for the cursor. In this case, Moving it down and to the right by 10 px.

    If you want to get the mouse position,
    Code:
    Point p = Cursor.Position;
    Will give you the cursor's current position.

    Comment

    Working...