Closed sweeetland closed 4 years ago
So the issue was due to macOS permissions.
Un-granting accessibility and then checking the box again has seemed to fix the issue.
This is an issue I'm facing as well. If you deploy a new version of the app (I'm using Electron), even if the accessibility permission is already granted to the older version, it needs to be ungranted then granted again for robotjs to work.
This is annoying and there's no way to prompt the user to grant accessibility permissions again because they are already granted!
@sweeetland Did you ever find a solution to this issue?
Not working when packaged for Windows either, any news?
macOS Monterey 12.3.1
Robotjs works perfectly in dev - does nothing in production, any news ?
This is an issue I'm facing as well. If you deploy a new version of the app (I'm using Electron), even if the accessibility permission is already granted to the older version, it needs to be ungranted then granted again for robotjs to work.
This is annoying and there's no way to prompt the user to grant accessibility permissions again because they are already granted!
@sweeetland Did you ever find a solution to this issue?
hi. @aabuhijleh @sweeetland
I have the same situation, have you solved it?
thx.
Hi Guys
Sorry I've been stuck with this one for quite a while now and I'm not really sure what else to try.
I am using robotjs to simulate a cmd + v keyboard press to paste from the clipboard into the previously focused application. I am using electron-webpack and in dev everything works as it should. However, when I build for production using electron-builder and run the dmg everything else works fine except robotjs does nothing.
I'm probably just missing a build step but I'm not sure. I've looked at electron-builder and electron-webpack experimented with different configurations but had no joy. Any and all help with this is very much appreciated, thanks!
Environment
Here's a simplified version of the code:
package.json
main/index.ts