You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not currently, and I don't know if it ever will. I personally use [Electron](http://electron.atom.io/)/[NW.js](http://nwjs.io/) for global hotkeys, and this works well. Later on I might add hotkey support or create a separate module. See [#55](https://github.com/octalmage/robotjs/issues/55) for details.
142
165
143
-
#### Can I take a screenshot with RobotJS?
166
+
#### Can I take a screenshot with RobotJS?
144
167
145
-
Soon! This is a bit more complicated than the rest of the features, so I saved it for last. Luckily the code is already there, I just need to write the bindings, and I've already started. Subscribe to [#13](https://github.com/octalmage/robotjs/issues/13) for updates.
168
+
Yes. `robot.screen.capture()` captures the main display. Pass
169
+
`x, y, width, height` to capture a specific rectangle.
146
170
147
171
#### Why is <insert key> missing from the keyboard functions?
148
172
149
173
We've been implementing keys as we need them. Feel free to create an issue or submit a pull request!
150
174
151
175
#### How about multi-monitor support?
152
176
153
-
The library doesn't have explicit multi-monitor support, so anything that works is kind of on accident. Subscribe to [#88](https://github.com/octalmage/robotjs/issues/88) for updates.
177
+
Use `robot.getDisplays()` to inspect displays and pass a rectangle from one
178
+
display to `robot.screen.capture(x, y, width, height)`. A capture rectangle
179
+
cannot span multiple displays. Linux reports the current X11 screen.
154
180
155
181
For any other questions please [submit an issue](https://github.com/octalmage/robotjs/issues/new).
0 commit comments