Description Usage Arguments Value Note See Also Examples
Record subsequent mouse movements and print to console.
1 |
n |
number of mouse moves to record. Default is |
timeInterval |
(seconds). Record after how much seconds. Default is |
failSafe |
Logical flag to allow for emergency stops. Default is |
Prints "delay(2000); move(x,y); left()" to the console.
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.
The record function calls the coord()
function after the specified time interval passed and repeats n
times. The console output can be pasted to a script to rapidly build a mouse macro. Unfortunately, this function is a work-around since it is not possible to record mouse events with the Java Robot Class. The console output is basically a template and can be adjusted to the needs of the user.
1 2 3 4 | ## Not run:
record()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.