Exemplo n.º 1
0
        public static void Move(int x, int y)
        {
            var p    = Amongus.GetProcess();
            var hWnd = p.MainWindowHandle;
            var rect = new User32.RECT();

            User32.GetWindowRect(hWnd, ref rect);

            var windowX = rect.left;
            var windowY = rect.top;

            SetCursorPos(windowX + x, windowY + y);
        }