Comments (2)
Use robot.Window.isAxEnabled(true)
(the true
part is important). That should pop up the dialog, prompting to grant access. Note that if you have previously denied access, the dialog may not pop up, in which case you should go to System Preferences
-> Security & Privacy
-> Accessability
, unlock the window, and delete (minus button) the app in question from the list so that it can pop a fresh dialog next time.
Also note that depending on how exactly you are using robot-js
, it may not be the Chrome
app that you need to grant access. For example, when launching robot-js
via node
from the command-line, you may see the prompt mentioning your terminal window as the app requesting access.
from robot-js.
Closing the issue, since it was for an old project. But thank you for the suggestion @p120ph37. This can help others running into this issue.
from robot-js.
Related Issues (20)
- can't use caps-lock
- Include PDB files in compilation
- Thank you for updating to node 9! :) HOT 1
- Get current cursor state HOT 1
- Appveyor / CI not configured HOT 8
- keyboard hold key sticky HOT 3
- Press multiple keys at the same time. HOT 6
- Add Window.setFocus to API
- keyboard not working in games HOT 10
- Cannot set autoDelay HOT 2
- How can I make press key not described? HOT 6
- keyboard type HOT 11
- Incompatible with node v10 (NODE_MODULE_VERSION=64) HOT 10
- DISPLAY other than :0.0?
- Gets no windows on OSX HOT 1
- Failing CI
- Couldn't install via npm on win x64 HOT 6
- Keyboard/mouse on multiuser system
- Segmentation fault (core dumped)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robot-js.