W
W
Wasya UK2019-01-22 23:20:59
JavaScript
Wasya UK, 2019-01-22 23:20:59

How to simulate key presses on Node?

Is there a ready-made method for simulating a keyboard press in Node, or is it possible to make an addon on pluses?
I don't need an imitation like in a browser, I need a thing like in sharps SendKeys.Send("w");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zendor, 2019-01-22
@dmc1989

robotjs

const robot = require('robotjs');
robot.keyTap('enter');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question