set_cursor_pos

Function set_cursor_pos 

Source
pub fn set_cursor_pos(x: i32, y: i32)
Expand description

Moves the mouse cursor to the specified screen coordinates (x, y).

§Parameters

  • x: The x-coordinate on the screen.
  • y: The y-coordinate on the screen.

§Usage

Useful for UI automation, moving the cursor to a specific location on the screen.