예제 #1
0
        private static void DoMouseMoveTo(int x, int y)
        {
            UPoint uPoint = convertPoint(new Point(x, y));

            mouse_event(
                (uint)(MouseEventFlags.ABSOLUTE | MouseEventFlags.MOVE),
                uPoint.x,
                uPoint.y,
                0,
                0
                );
        }
예제 #2
0
        private static void DoMouseClick(int x, int y)
        {
            UPoint uPoint = convertPoint(new Point(x, y));

            keybd_event(VK_CONTROL, 0, 0, 0);
            keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
            mouse_event(
                (uint)(MouseEventFlags.ABSOLUTE | MouseEventFlags.MOVE | MouseEventFlags.LEFTDOWN | MouseEventFlags.LEFTUP),
                uPoint.x,
                uPoint.y,
                0,
                0
                );
        }