useinputkit::{MouseButton, mouse};usestd::thread::sleep;fnmain(){mouse::move_to(500,300);mouse::click(MouseButton::Left);loop{mouse::move_to(500,300);// IMPORTANT:
// Always add a delay when repeatedly sending mouse or keyboard input.
// A tight loop can send millions of input events, consume a CPU core,
// and make your system difficult to control.
sleep(std::time::Duration::from_millis(1000));}}