octalmage / robotjs

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

Does not work on windows 11 #746

Open mateuscolli opened 1 year ago

mateuscolli commented 1 year ago

I'm developing an application for remote access, using Electron for interface and build. This app will be installed on my client's computer which is mostly Windows 7/8/10/11, x64 and x86. To try and cover them all with a single build, I'm trying to compile with windows ia32. However, during the tests I noticed that in Windows 11 the remote control with Robotjs does not work, and does not return any errors. I've tried debugging anyway and I still don't get any errors.

Attempts

I've tried rebuilding Robotjs with:

I've tried using other precompiled forks like:

Expected behavior

Remotely access other computers and control them.

Current Behavior

No mouse movement or keyboard key is pressed. No kind of control.

Your environment

orange250 commented 9 months ago

window OS ?need build 需要编译 node-gyp 工具

  1. 安装 python3.11 2.安装visual studio 2022 支持桌面C++的选项√上
  2. cd到 robot目录执行 node-gyp rebuild 多看看 http://robotjs.io/docs/building