forked from TChatzigiannakis/InputSimulatorPlus
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
hello, im triying to make this work to move mouse to relative window coord, so i got this
public async void SetCursorPosition(Point p)
{
await Delay(500);
Rectangle rect;
NativeMethods.GetWindowRect(process.MainWindowHandle, out rect);
p.X = p.X + rect.Left;
p.Y = p.Y + rect.Top;
simulator.Mouse.MoveMouseTo(Convert.ToDouble(p.X), Convert.ToDouble(p.Y));
}
but the mouse is off by alot from the actual Point where it should move, i debug the app, and the coords are correct. any idea what happen ?
Metadata
Metadata
Assignees
Labels
No labels