octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.4k stars 970 forks source link

Robotjs doesn't work with Electron, current time 2023.11.27 #750

Open hqsow opened 12 months ago

hqsow commented 12 months ago

I tried to include robotjs into my new project, npm install electron, npm install robotjs, when start, it alerts : image I tried everything I found on internet, including the official page of https://robotjs.io/docs/electron, it didnt work.

ryancwalsh commented 11 months ago

https://github.com/jitsi/robotjs might have helped me with this. I can't remember.

s1hofmann commented 9 months ago

@hqsow As an alternative, nut.js is fully prebuilt for macOS, Windows and Linux and provides an actively maintained alternative to robotjs which works fine with latest Electron.

lubo3395 commented 6 months ago

I also have the same problem, I'm going crazy

zorban commented 3 weeks ago

Try my fork https://github.com/zorban/robotjs/tree/nan-to-napi-migration