keybd.release: Simulate Key Release

View source: R/main.R

keybd.releaseR Documentation

Simulate Key Release

Description

Simulate the release of keyboard keys held by keybd.press. Multiple keys can be released simultaneously by using a + separator (see Examples). See keyboard_value for supported keys.

Usage

keybd.release(button)

Arguments

button

character. The key release to simulate (not case sensitive).

See Also

keybd.press

Examples

## Not run: 

# Move to the third working window
keybd.press("Alt", hold = TRUE)
keybd.press("Tab")
Sys.sleep(0.1)
keybd.press("Tab")
keybd.release("Alt")

## End(Not run)

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