Example #1
0
 public static void LeftClick(int x, int y, int delay)
 {
     MouseOperations.SetCursorPosition(x, y);
     MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftDown);
     Thread.Sleep(delay);
     MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftUp);
     Thread.Sleep(delay);
 }
Example #2
0
 public static void MiddleClick(int x, int y, int delay)
 {
     MouseOperations.SetCursorPosition(x, y);
     MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.MiddleUp);
     Thread.Sleep(delay);
     MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.MiddleUp);
     Thread.Sleep(delay);
 }