iohook icon indicating copy to clipboard operation
iohook copied to clipboard

iohook.node is not a valid Win32 application

Open schwarzsky opened this issue 2 years ago • 4 comments

Expected Behavior

Code is basically this, so program should log keys i pressed.

const ioHook = require('iohook');

ioHook.on("keyup",function(keyPress){
    console.log(keyPress)
});

ioHook.start();

Current Behavior

Electron app exits with that error, it says "iohook.node is not a valid Win32 application."

Error: \\?\C:\Users\koray\Documents\emojithing\node_modules\iohook\builds\electron-v89-win32-x64\build\Release\iohook.node ge├ğerli bir Win32 uygulamas├¢ de├░il.
\\?\C:\Users\koray\Documents\emojithing\node_modules\iohook\builds\electron-v89-win32-x64\build\Release\iohook.node
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:1846)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12684)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\Users\koray\Documents\emojithing\node_modules\iohook\index.js:24:21)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)

Your Environment

  • IOHook Version: 0.9.3
  • Environment name and version (e.g. Chrome 39, node.js 5.4, electron 11.2): NodeJS 15.9.0, Electron 13.0.0
  • Operating System and version (desktop or mobile): Windows 11 x64

schwarzsky avatar Jan 31 '22 04:01 schwarzsky

iohook team, PLEASE give us an update on this!

SuperJumpBros avatar Apr 05 '22 11:04 SuperJumpBros

Experiencing the same issue here with node-v93-win32-x64 4 months after this issue was opened Opened another one at https://github.com/wilix-team/iohook/issues/402

dement6d avatar May 10 '22 00:05 dement6d

Looks like iohook's creator has no time to dedicate for maintaining iohook.

We will wait for new maintainers if they come.

https://github.com/wilix-team/iohook/issues/291

schwarzsky avatar Jul 14 '22 16:07 schwarzsky

Electron 13 is not yet supported.

lacymorrow avatar Jan 22 '24 22:01 lacymorrow