Johnny-five: Keyboard.write() alternative in Johnny-five? (Sending keystroke with single switch button)

Created on 17 May 2020  路  4Comments  路  Source: rwaldron/johnny-five

Is there a way to send keystroke to my PC with J5 using a single Switch hardware element on my breadboard?
I know about http://johnny-five.io/api/keypad/, the thing is - I'd like to program a single switch button to send the keystroke.
Thanks for any help!

All 4 comments

Well, there's this module but it requires a JRE. What app/device will be listening for the keystroke? Maybe there is a cleaner solution.

I plan for arduino to gather keystrokes from multiple switch-buttons and then my react.js-app should catch them and handle all the sync/async logic. Thanks for a possible way to do this!

I have found this npm package, works like a charm!
https://www.npmjs.com/package/robotjs

That's great. Good luck on your project.

Was this page helpful?
0 / 5 - 0 ratings