예제 #1
0
        public void Activate(string button)
        {
            int buttonNumber = ParseMouseButtonNumber(button);

            if (buttonNumber == 1)
            {
                _mouse.LeftButtonClick();
            }
            else if (buttonNumber == 2)
            {
                _mouse.RightButtonClick();
            }
            else if (buttonNumber == 3)
            {
                _mouse.MiddleButtonClick();
            }
            else if (buttonNumber > 3)
            {
                _mouse.XButtonClick(buttonNumber - 3);
            }
        }
예제 #2
0
 public void Click(int button)
 {
     _mouseSimulator.XButtonClick(button);
 }