Example #1
0
 public static void RightClick(int armyControllDelay)
 {
     MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.RightDown);
     Thread.Sleep(10);
     MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.RightUp);
     Thread.Sleep(10);
 }
Example #2
0
 public static void LeftClick(int delay)
 {
     MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftDown);
     Thread.Sleep(delay);
     MouseOperations.MouseEvent(MouseOperations.MouseEventFlags.LeftUp);
     Thread.Sleep(delay);
 }
Example #3
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 #4
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);
 }