wilix-team / iohook

Node.js global keyboard and mouse listener.
https://wilix-team.github.io/iohook
MIT License
1.2k stars 291 forks source link

iohook.node is not a valid Win32 application #377

Open schwarzsky opened 2 years ago

schwarzsky commented 2 years ago

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

SuperJumpBros commented 2 years ago

iohook team, PLEASE give us an update on this!

dement6d commented 2 years ago

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

schwarzsky commented 2 years ago

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

lacymorrow commented 10 months ago

Electron 13 is not yet supported.