0.1.3 • Published 3 years ago

winkeys v0.1.3

Weekly downloads
5
License
GPL-3.0
Repository
-
Last release
3 years ago

WinKeys

WinKeys is designed to do one thing: send native keyboard inputs to Windows.

I was developing a very niche Electron application and robotjs was not yet updated to support Node 12 / Electron 5. It will not work on anything except Windows, and I have no plans to add support for other platforms in the future.

Usage

const winkeys = require("winkeys");

winkeys.pressKeys(string);

You may send one character at a time, or a whole string (can include spaces). There are special keys which require the use of specific codes:

Physical KeySpecial Code
Enter/Return@@return
Backspace@@backspace
Control@@control
Space Bar@@space
Delete@@delete
Tab@@tab

These codes must be sent by themselves, and not in the middle of another string.

winkeys.pressKeys("@@backspace");

Other special keys may be added in the future as they are fairly trivial to implement. If you need one added, feel free to submit a Pull Request or create a Feature Request under Issues.

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

5 years ago

0.1.0

5 years ago