mouse.move: Move Cursor to Specific Location

View source: R/main.R

mouse.moveR Documentation

Move Cursor to Specific Location

Description

Move cursor to specific coordinate of screen .

Usage

mouse.move(x, y, duration = NA, step_ratio = 0.01)

Arguments

x

numeric. X-axis of screen.

y

numeric. Y-axis of screen.

duration

numeric. Cursor movement time in seconds, there might be some delay on different computer.

step_ratio

numeric. Ratio of total distance in each step, only available when duration is not NA.

Examples

## Not run: 

# 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)

## End(Not run)

KeyboardSimulator documentation built on Sept. 13, 2023, 5:07 p.m.