keybd.press | R Documentation |
Simulate keyboard key presses. Multiple keys can be pressed simultaneously by using +
as separator (see Examples). See keyboard_value
for supported keys.
keybd.press(button, hold = FALSE)
button |
character. The key press to simulate (not case sensitive). |
hold |
logical. Whether the key should be held down. If |
keybd.release
## Not run:
# press one key
keybd.press("a")
# press multiple keys
keybd.press("Alt+F4")
# press multiple keys using hold
keybd.press("Alt", hold = TRUE)
keybd.press("F4")
keybd.release("Alt")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.