iohook

Node.js 全局键盘和鼠标侦听器。「Node.js global keyboard and mouse listener.」

Github星跟踪图

iohook

关于

Node.js 全局本机键盘和鼠标侦听器。

该模块可以通过 JavaScript/TypeScript 应用程序内部和外部的本机钩子来处理键盘和鼠标事件。

发现了错误? 有想法吗 随时发布问题或提交 PR

查看文档

平台支持

  • >=0.6.0 的版本仅支持正式支持的平台版本。
  • 版本 0.5.X 是最后一个支持 Electron<4.0.0 的版本
  • 版本 0.4.X 是最后一个支持 Node<8.0 和 Electron<2.0.0 的版本

安装

iohook 为许多操作系统和平台提供了预构建的版本。

npm install iohook --save # or yarn add iohook

常问问题

问:此模块是否需要 Java?

答:不,该模块不需要 Java(如 jnativehook)或任何其他运行时。

问:iohook 是否与 Node/Electron 版本 X.Y.Z 兼容?

答:我们尝试匹配当前支持的 Node 和 Electron 版本。

应用

您在项目中使用 iohook 吗? 请在 PR 中告诉我们,以便我们将其添加到列表中!

贡献者

感谢kwhat的 libuiohook 项目和 ayoubserti 的第一个 iohook 原型。

  • vespakoen (预构建系统实施)
  • matthewshirley (Windows 预构建修复程序)
  • djiit (项目和社区帮助)
  • ezain (添加功能启用/禁用鼠标单击传播)
  • anoadragon453 (electron 4+ 支持)
  • 所有其他贡献者。 随意扩展此列表!

(The first version translated by vz on 2020.07.19)

主要指标

概览
名称与所有者wilix-team/iohook
主编程语言C
编程语言CMake (语言数: 9)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2016-12-10 18:28:53
推送于2025-02-21 04:04:41
最后一次提交2025-02-20 23:04:41
发布数46
最新版本名称v0.9.3 (发布于 )
第一版名称v0.1.3 (发布于 )
用户参与
星数1.2k
关注者数21
派生数303
提交数487
已启用问题?
问题数327
打开的问题数95
拉请求数73
打开的拉请求数12
关闭的拉请求数38
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

iohook

Build status
Build Status
Gitter chat
NPM version

About

Node.js global native keyboard and mouse listener.

This module can handle keyboard and mouse events via native hooks inside and outside your JavaScript/TypeScript application.

Found a bug? Have an idea? Feel free to post an issue or submit a PR.

Check out the documentation.

Platform support

  • Versions >= 0.6.0 support only officially supported platforms versions.
  • Versions 0.5.X are the last to support Electron < 4.0.0
  • Versions 0.4.X are the last to support for Node < 8.0 and Electron < 2.0.0

Installation

iohook provides prebuilt version for a bunch of OSes and platforms.

npm install iohook --save # or yarn add iohook

FAQ

Q. Does this module require Java ?

A. No, this module doesn't require Java (like jnativehook) or any other runtimes.

Q. Is iohook compatible with Node/Electron version X.Y.Z ?

A. We try to match the currently supported version of both Node and Electron.

Apps

Are you using iohook in your project ? Please tell us in a PR so we an add it to the list !

Contributors

Thanks to kwhat for the libuiohook project and ayoubserti for the first iohook prototype.

  • vespakoen (prebuild system implementation)
  • matthewshirley (Windows prebuild fix)
  • djiit (project & community help)
  • ezain (add feature enable/disable mouse click propagation)
  • anoadragon453 (electron 4+ support)
  • All the other contributors. Feel free to extend this list !