Get mouse and keypress in node-red. a multi-use keylogger for PPT and automation
npm install node-red-contrib-uiohook-napinode-red-contrib-iohook
========
Node for capturing keystrokes and mousestrokes.
``bash
npm install node-red-contrib-uiohook-napi
`
`bash
npm install uiohook-napi
``
Simple node to catch key strokes on your keyboard and mouse.
Input: messages with msg.topic set to "state" with msg.payload true/false [boolean] are used to control
scanning of keyboard strokes and mouse clicks. Other messages are discarded.
Output: msg.topic is either "keyboard" or "mouse" following by msg.payload typeof number with number of keystroke or number of button clicked on mouse.
When the control message is recieved, node sends message about changed state if command is correct with msg.topic "info".
Copyright 2023 Simone Montanari