Beispiel #1
0
        public void SetMousePosition(Vector2 position)
        {
            POINT pt = new POINT {
                x = (int)position.x, y = (int)position.y
            };

            WinUser.ClientToScreen(Window.GetWindowClass().GetHWND(), ref pt);
            WinUser.SetCursorPos(pt.x, pt.y);
        }