Skip to content

wurikiji/iohook

This branch is 15 commits ahead of, 331 commits behind wilix-team/iohook:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c4b8e17 · Sep 23, 2018
Mar 19, 2018
May 11, 2018
Feb 18, 2018
Sep 23, 2018
Sep 23, 2018
Sep 21, 2018
Sep 23, 2018
Sep 23, 2018
Sep 23, 2018
Feb 15, 2018
May 17, 2018
May 17, 2018
Mar 28, 2017
Dec 10, 2016
Sep 23, 2018
May 10, 2018
May 17, 2018
Feb 16, 2018
May 8, 2018
Sep 21, 2018
Sep 21, 2018
Jul 26, 2018
Sep 23, 2018
Sep 23, 2018

Repository files navigation

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.

Installation

iohook provides prebuilt version for a bunch of OSes and runtime versions.

from git

npm i git+https://github.com:wurikiji/iohook.git 

Windows

  • for Node.js usage just make sure that you have installed following components and it will be built by install script
  • for Electron go to installation dir (node_modules/iohook) and recompile it according to your Electron version. e.g. cmake-js rebuild -r electron -v 2.0.0

Added feature

iohook.enableKeyboardPropagation()

You can enable keyboard event propagation. Keyboard events are propagated by default.

iohook.disableKeyboardPropagation()

You can disable keyboard event propagtion. Keyboard events are captured and emitted but not propagated to the apps.

iohook.enableMovePropagation()

iohook.disableMovePropagation()

You can enable or disable mouse movement propagtions.

FAQ

Q. Does this module require Java ?

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

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)
  • wurikiji (add features. refer to commit log and readme)
  • All the other contributors. Feel free to extend this list !