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

electron install iohook Caton #242

Closed DH-Y closed 3 years ago

DH-Y commented 4 years ago

I'm developing an electronic desktop, npm install iohook , If ‘const iohook = require('iohook')’ ,The mouse is stuck when the program starts, But cancel the import and return to normal. I hope you can answer.

DH-Y commented 4 years ago

Hello, I've solved it. terms of settlement: ·~before: const ioHook = require("iohook");

function demo(){ ioHook.on('mousemove',function) }

·~after: const ioHook = null

function demo(){ ioHook=require("iohook"); ioHook.on('mousemove',function) }

Solve the problem of mouse jam when Electron npm run

adi-kurnia commented 4 years ago

Hello, nice to meet you. Same issue with you here. Could you share whole js file including iohook declaration? I'd like to take a look at it. Thank you.

ash0x0 commented 3 years ago

Closing as stale. Also seems to be user error. Feel free to reopen if this is a current issue.