octalmage / robotjs

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

Make robotjs context-aware for electron 14+ #696

Open csett86 opened 3 years ago

csett86 commented 3 years ago

Electron 14+ refuse to load robotjs on the renderer See https://github.com/electron/electron/issues/18397 for details

Closes: #580

csett86 commented 3 years ago

@octalmage I successfully tested this with electron 14, kindly review and merge. Thank you in advance!

csett86 commented 3 years ago

@oktapodia I successfully tested this with electron 14, kindly review and merge.

csett86 commented 2 years ago

Instead of this you can also directly go to Node-API with #697, Node-API is also context-aware.

ALeeYaa commented 2 years ago

Instead of this you can also directly go to Node-API with #697, Node-API is also context-aware. Hi, luckyly i solved the problem about render process could not use the robotjs When I see your submit branch。But there are some problems (ex:keyTap:error in Invalid key code specified、typeString methods:write character unexpectedly),I leave you this message in the spirit of trying,I would really appreciate your reply。(Excuse my poor English.....hahahaha)