Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
像这个问题一样,我试图弄清楚如何用 NodeJS 模拟某些关键命令。例如,我想以编程方式使“ctrl+C”(复制突出显示的文本)发生,无论用户在哪个窗口中。
以前这类问题的常见答案是RobotJS。RobotJS 似乎非常适合这项任务——除了它不再被维护,因此似乎不适合生产。
是否有 RobotJS 的替代品,可以使关键命令发生?
我知道有几个选项:
@nut-tree/nut-js