I have a two-dimensional array with coordinates, and I want to make the mouse movement a specific pattern created by these coordinates in a WPF application. Could you help me? I tried the Cursor class, but that will not work. Obviously I'm doing something wrong.
private void SetPosition( int a, int b) { this.Cursor = new Cursor(Cursor.Current.Handle); Cursor.Position = new Point(a, b); }
This is the method that I use a and b from an array. thanks in advance!
PS this method is inside an event that fires 20 times per second.
source share