コード例 #1
0
        public void Hold(string button)
        {
            int buttonNumber = ParseMouseButtonNumber(button);

            if (buttonNumber == 1)
            {
                _mouse.LeftButtonDown();
            }
            else if (buttonNumber == 2)
            {
                _mouse.RightButtonDown();
            }
            else if (buttonNumber == 3)
            {
                _mouse.MiddleButtonDown();
            }
            else if (buttonNumber > 3)
            {
                _mouse.XButtonDown(buttonNumber - 3);
            }
        }