コード例 #1
0
 public static void Click(MouseButtons button)
 {
     if (button != MouseButtons.Left)
     {
         if (button != MouseButtons.Right)
         {
             if (button == MouseButtons.Middle)
             {
                 MouseSimulator.Click(MouseButton.Middle);
             }
         }
         else
         {
             MouseSimulator.Click(MouseButton.Right);
         }
     }
     else
     {
         MouseSimulator.Click(MouseButton.Left);
     }
 }
コード例 #2
0
 public static void DoubleClick(MouseButton button)
 {
     MouseSimulator.Click(button);
     MouseSimulator.Click(button);
 }