Esempio n. 1
0
 public static void MouseUp(MouseButtons button)
 {
     if (button != MouseButtons.Left)
     {
         if (button != MouseButtons.Right)
         {
             if (button == MouseButtons.Middle)
             {
                 MouseSimulator.MouseUp(MouseButton.Middle);
             }
         }
         else
         {
             MouseSimulator.MouseUp(MouseButton.Right);
         }
     }
     else
     {
         MouseSimulator.MouseUp(MouseButton.Left);
     }
 }
Esempio n. 2
0
 public static void Click(MouseButton button)
 {
     MouseSimulator.MouseDown(button);
     MouseSimulator.MouseUp(button);
 }