node.js - 在 Node.js 中监听全局按键
问题描述
我正在尝试收听全局按键,并检查了与我的类似的其他堆栈溢出问题。我使用了iohook,但出现了错误。
refresh_locale_list [476]: GetKeyboardLayoutList(0, NULL) found 1 layouts.
refresh_locale_list [493]: Received 1 locales.
load_input_helper [866]: refresh_locale_list() found 1 locale(s).
我怎么解决这个问题?还有其他解决方案吗?
(我只是将它用于一个简单的节点应用程序)
节点版本:v14.15.0
解决方案
Windows 上的 node v > 13.x 可能存在错误
尝试节点版本之一<= 13.x
推荐阅读
- javascript - 如何从外部访问 React 组件中使用的第三方 DOM 库中的对象的属性
- redux - 无法获取 takeUntil 来取消请求
- python - Python3 - 从excel导入价格(£)并将其转换为整数
- android - Android手机上的od输出格式
- python - 网页抓取:阅读器内的书页图像?
- android - 如何将图像一个活动发送到另一个活动?
- 3d - 围绕局部轴的对象旋转
- python - 如何使用 selenium TouchActions python 点击特定元素内的坐标?
- java - Java 8 compute() 和 computeIfPresent() 检查现有值
- python - 使用 python selenium webdriver 查找 html 页面中的所有子元素