Пример #1
0
 public static void MouseDown(MouseButtons button)
 {
     if (button != MouseButtons.Left)
     {
         if (button != MouseButtons.Right)
         {
             if (button == MouseButtons.Middle)
             {
                 MouseSimulator.MouseDown(MouseButton.Middle);
             }
         }
         else
         {
             MouseSimulator.MouseDown(MouseButton.Right);
         }
     }
     else
     {
         MouseSimulator.MouseDown(MouseButton.Left);
     }
 }
Пример #2
0
 public static void Click(MouseButton button)
 {
     MouseSimulator.MouseDown(button);
     MouseSimulator.MouseUp(button);
 }