コード例 #1
0
ファイル: Mouse.cs プロジェクト: carriercomm/SpiffBot
        public static void Move(int x, int y)
        {
            Invoke.POINT p = new Invoke.POINT {x = x, y = y};

            if (Cursor.Current != null)
                Invoke.ClientToScreen(Cursor.Current.Handle, ref p);
            Invoke.SetCursorPos(p.x, p.y);
        }
コード例 #2
0
        public static void Move(int x, int y)
        {
            Invoke.POINT p = new Invoke.POINT {
                x = x, y = y
            };

            if (Cursor.Current != null)
            {
                Invoke.ClientToScreen(Cursor.Current.Handle, ref p);
            }
            Invoke.SetCursorPos(p.x, p.y);
        }