SetCursorPos

[DllImport("coredll.dll", SetLastError = true)]
public static extern int SetCursorPos(
   int x,
   int y
);

Microsoft documentation: Link

Last updated