https://github.com/miraisolutions/winsendkeys
Sendkeys R library for Windows
https://github.com/miraisolutions/winsendkeys
cplusplus r rcpp sendinput sendkeys windows
Last synced: 2 months ago
JSON representation
Sendkeys R library for Windows
- Host: GitHub
- URL: https://github.com/miraisolutions/winsendkeys
- Owner: miraisolutions
- Created: 2017-10-26T09:20:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-30T12:24:16.000Z (4 months ago)
- Last Synced: 2025-06-30T12:38:32.378Z (4 months ago)
- Topics: cplusplus, r, rcpp, sendinput, sendkeys, windows
- Language: C++
- Size: 42 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - miraisolutions/winsendkeys - Sendkeys R library for Windows (C++)
README
# winsendkeys
[](https://github.com/miraisolutions/winsendkeys/actions/workflows/ci.yml)
[](https://codecov.io/gh/miraisolutions/winsendkeys)
Sendkeys R package for Windows
### Installation
Use `remotes` to install directly from Github:
```r
# using package remotes:
remotes::install_github("miraisolutions/winsendkeys")
```
In case you are behind a proxy, you can configure this first:
```r
# accessing Github's API over https, while using a http-proxy:
Sys.setenv(https_proxy="http://:@:")
```
### Usage
The package exports two main functions, `activateWindow` and `sendKeys`.
In addition, `key2code` returns a simple mapping data.frame for convenience:
```r
key2code()
```
|key |code |
|:---|:------------|
|{ |{LEFTBRACE} |
|} |{RIGHTBRACE} |
|+ |{PLUS} |
|@ |{AT} |
|^ |{CARET} |
|~ |{TILDE} |
|( |{LEFTPAREN} |
|) |{RIGHTPAREN} |
|% |{PERCENT} |
|\\t |{TAB} |
|\\n |{ENTER} |
|" |' |
|' |' |