Esempio n. 1
0
        public void PressMouseButton(int button)
        {
            switch (button)
            {
            case 1:
                InputSimulator.MouseDown(MouseDownFlags.LeftDown);
                break;

            case 2:
                InputSimulator.MouseDown(MouseDownFlags.MiddleDown);
                break;

            case 3:
                InputSimulator.MouseDown(MouseDownFlags.RightDown);
                break;

            case 4:
                InputSimulator.MouseDown(MouseDownFlags.XDown, 1);
                break;

            case 5:
                InputSimulator.MouseDown(MouseDownFlags.XDown, 2);
                break;
            }
        }