Пример #1
0
        public void PerformClick(MouseSimulatorClickType clickType)
        {
            //Call the imported function with the cursor's current position
            uint X = (uint)Cursor.Position.X;
            uint Y = (uint)Cursor.Position.Y;

            PerformClick(clickType, X, Y);
        }
Пример #2
0
        private uint GetClickType(MouseSimulatorClickType clickType)
        {
            switch (clickType)
            {
            case MouseSimulatorClickType.Left:
                return(leftClick);

            case MouseSimulatorClickType.Right:
                return(rightClick);

            default:
                return(leftClick);
            }
        }
Пример #3
0
        public void PerformClick(MouseSimulatorClickType clickType, uint x, uint y)
        {
            uint click = GetClickType(clickType);

            mouse_event(click, x, y, 0, 0);
        }