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