Thanks to visit codestin.com
Credit goes to github.com

Skip to content

yuanquan8/iohook-build-2

 
 

Repository files navigation

iohook

node build.js --runtime electron --version 19.1.9 --abi 106
//  如果上面这行出现错误,请尝试执行以下命令: node-gyp全局安装,版本:v9.3.1
node-gyp configure rebuild --target=22.3.17 --arch=x64 --dist-url=https://artifacts.electronjs.org/headers/dist --v8_enable_pointer_compression=1 --msvs_version=2022 --abi=108
 //Put `iohook.node` and `uihook.dll` (or `.so` or `.dylib`, depending on your operating system) into the `builds` directory as expected by iohook. See again the error message for details about the directory structure.

// const nodeAbi = require( 'node-abi')
// console.log(nodeAbigetAbi('18.17.xx'))

NPM version Release date GitHub Super-Linter CI code style: prettier Gitter chat Issues

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.

Linux (including WSL)

# On Linux (including WSL) platform, you will need libxkbcommon-x11 installed
sudo apt-get install -y libxkbcommon-x11-0

All 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)
  • ykhwong (node-gyp usage, electron 9+ support)
  • All the other contributors. Feel free to extend this list !

About

Node.js global keyboard and mouse listener.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 80.3%
  • JavaScript 6.0%
  • M4 5.2%
  • C++ 4.0%
  • Roff 1.5%
  • CMake 1.5%
  • Other 1.5%