示例#1
0
        public void PressAndReleaseMouseButton(int button)
        {
            switch (button)
            {
            case 1:
                InputSimulator.MouseTap(MouseTapFlags.LeftTap);
                break;

            case 2:
                InputSimulator.MouseTap(MouseTapFlags.MiddleTap);
                break;

            case 3:
                InputSimulator.MouseTap(MouseTapFlags.RightTap);
                break;

            case 4:
                InputSimulator.MouseTap(MouseTapFlags.XTap, 1);
                break;

            case 5:
                InputSimulator.MouseTap(MouseTapFlags.XTap, 2);
                break;
            }
        }