We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f412619 commit aa5ca33Copy full SHA for aa5ca33
README.md
@@ -17,6 +17,8 @@ The following example shows how to get the currently focused window's title and
17
```javascript
18
const { windowManager } = require("node-window-manager");
19
20
+windowManager.requestAccessibility(); // required on macOS
21
+
22
const window = windowManager.getActiveWindow();
23
24
// Prints the currently focused window title.
@@ -49,6 +51,10 @@ window.setBounds({ x: 0, y: 0 });
49
51
50
52
### Instance methods
53
54
+#### windowManager.requestAccessibility() `macOS`
55
+ Required before any action on macOS.
56
+- Returns `boolean`
57
58
#### windowManager.getActiveWindow() `Windows` `macOS`
59
60
- Returns [`Window`](#class-window)
0 commit comments