Friday 2 October 2009

How to programatically move the mouse in C#

.Net gives you access the mouse via "Cursor". You can interact with the mouse position like this:


Cursor.Position = new Point(Cursor.Position.X + 10, Cursor.Position.Y + 10);

Easy peesy

No comments:

Post a Comment

Note: only a member of this blog may post a comment.