delay: Time Delay

Description Usage Arguments Note See Also Examples

Description

Set the time delay in milliseconds manually.

Usage

1
delay(ms = 500, failSafe = TRUE)

Arguments

ms

(milliseconds). Default is 500.

failSafe

Logical flag to allow for emergency stops. Default is TRUE.

Note

If failSafe is TRUE, the function checks whether the mouse cursor is at the upper left position of the screen (pixel: x = 0, y = 0) . If so, the function fails and throws an error, allowing for emergency stops during code execution.

See Also

setAutoDelay

Examples

1
2
3
4
5
## Not run: 
delay(2000)   # wait 2 seconds
move(0,0)

## End(Not run)

rMouse documentation built on May 1, 2019, 9:23 p.m.