Esempio n. 1
0
        //move shift, by current position.
        public static void MoveShift(int shiftX, int shiftY)
        {
            Win32API.POINT p = new Win32API.POINT();
            Win32API.GetCursorPos(ref p);

            MoveTo(p.x + shiftX, p.y + shiftY);
        }
Esempio n. 2
0
        public static Point GetMousePos()
        {
            Win32API.POINT p = new Win32API.POINT();
            Win32API.GetCursorPos(ref p);

            return new Point(p.x, p.y);
        }