Move cursor to specific coordinate of screen .
mouse.move(x, y, duration = NA, step_ratio = 0.01)
numeric. X-axis of screen.
numeric. Y-axis of screen.
numeric. Cursor movement time in seconds, there might be some delay on different computer.
numeric. Ratio of total distance in each step, only available when duration
is not NA
.
if (FALSE) {
# Move cursor to middle of screen in 1080FHD monitor
mouse.move(x=960,y=540)
# Move cursor to middle of screen in 1080FHD monitor within 3 seconds
mouse.move(x=960,y=540,duration=3)
}
Run the code above in your browser using DataLab