@digitalattitude/key-sender

Send keyboard keypress/keyup events to specified window class or hwnd

Stats

StarsIssuesVersionUpdatedCreatedSize
@digitalattitude/key-sender
6.0.03 years ago4 years agoMinified + gzip package size for @digitalattitude/key-sender in KB

Readme

SendKeyToWindow

sendKeyToWindowClass

Sens key to window by provided window class name.

sendKeyToWindowHwnd

Sens key to window by provided window HWND.

send

Sends key in current active window

Usage

$ node-gyp rebuild - for nodejs $ HOME=~/.electron-gyp node-gyp rebuild --target=1.6.15 --arch=x64 --dist-url=https://atom.io/download/electron - for electron see example.js

Tested with node 9 on Windows 10, 64 bit.

Credits

Inspired by http://robotjs.io

#Possible issues For keys like !, : ecc. should be provided modifier "shift"

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.