Пример #1
0
        public void ReleaseMouseButton(int button)
        {
            switch (button)
            {
            case 1:
                InputSimulator.MouseUp(MouseUpFlags.LeftUp);
                break;

            case 2:
                InputSimulator.MouseUp(MouseUpFlags.MiddleUp);
                break;

            case 3:
                InputSimulator.MouseUp(MouseUpFlags.RightUp);
                break;

            case 4:
                InputSimulator.MouseUp(MouseUpFlags.XUp, 1);
                break;

            case 5:
                InputSimulator.MouseUp(MouseUpFlags.XUp, 2);
                break;
            }
        }