Description Usage Arguments Note See Also Examples
Send special keys like "ESC", "ENTER" or "TAB"
1 | specialKey(key = "ESC", failSafe = TRUE)
|
key |
"ESC", "ENTER" or "TAB" as string. |
failSafe |
Logical flag to allow for emergency stops. Default is |
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.
1 2 3 4 5 | ## Not run:
specialKey("ENTER") # send ENTER
specialKey("ESC") # send ESC
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.