Krombik / keysender

Node.js Desktop Automation for Windows.
MIT License
82 stars 9 forks source link

Support sending numeric scancodes #19

Closed rpav closed 1 year ago

rpav commented 1 year ago

The KeyboardButton type allows one to send VK_* codes, but this function was crashing when getting non-strings. This fixes that.

Really killer library by the way. I'm using it to create something similar to Logitech's now-defunct LGS software, for qmk-firmware keyboards!

Krombik commented 1 year ago

Hi, thanks, but can you use a ternary operator instead of an if else statement to avoid code repetition?

rpav commented 1 year ago

No problem and done; I probably should have done that after experimenting.