iohook

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

Github stars Tracking Chart

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)

Main metrics

Overview
Name With Ownerwilix-team/iohook
Primary LanguageC
Program languageCMake (Language Count: 9)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2016-12-10 18:28:53
Pushed At2025-02-21 04:04:41
Last Commit At2025-02-20 23:04:41
Release Count46
Last Release Namev0.9.3 (Posted on )
First Release Namev0.1.3 (Posted on )
用户参与
Stargazers Count1.2k
Watchers Count21
Fork Count303
Commits Count487
Has Issues Enabled
Issues Count327
Issue Open Count95
Pull Requests Count73
Pull Requests Open Count12
Pull Requests Close Count38
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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 !