3

I'm trying to make a simple application involving a moving a mouse and using left and right click. I'm new on this kind of programming where mouse control is involved? can you guys tell me where should I start or give me some basic codes to work with?

What I want to do are:
1. Right click where the current cursor is (this is point A)
2. move on the lower right a bit (this is point B) and left click.
3. repeat.

This is the only code I tried and I found it on other threads.

 this.Cursor = new Cursor(Cursor.Current.Handle);
 Cursor.Position = new Point(Cursor.Position.X - 50, Cursor.Position.Y - 50);
 Cursor.Clip = new Rectangle(this.Location, this.Size);
Vikrant
5,05218 gold badges53 silver badges77 bronze badges
asked May 2, 2017 at 5:51
5

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.