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
Copenhagen Llagas
692 silver badges8 bronze badges
-
add the code that you tried.Thili77– Thili772017年05月02日 05:54:46 +00:00Commented May 2, 2017 at 5:54
-
added i dont really know where should i start.Copenhagen Llagas– Copenhagen Llagas2017年05月02日 05:56:47 +00:00Commented May 2, 2017 at 5:56
-
You might have to go low level on this one: here is a link from another stackoverflow linkA W– A W2017年05月02日 05:58:53 +00:00Commented May 2, 2017 at 5:58
-
You might have to go low level on this one: here is a link from another post linkA W– A W2017年05月02日 06:00:01 +00:00Commented May 2, 2017 at 6:00
-
msdn.microsoft.com/en-us/library/ms171548.aspx check this outyolo sora– yolo sora2017年05月02日 06:13:56 +00:00Commented May 2, 2017 at 6:13
lang-cs