https://github.com/soundofdarkness/window-pos
Gets Position and Size for a window on windows
https://github.com/soundofdarkness/window-pos
native-addon nodejs windows
Last synced: 9 days ago
JSON representation
Gets Position and Size for a window on windows
- Host: GitHub
- URL: https://github.com/soundofdarkness/window-pos
- Owner: Soundofdarkness
- License: mit
- Created: 2019-09-04T16:08:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T16:32:49.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T03:44:45.332Z (3 months ago)
- Topics: native-addon, nodejs, windows
- Language: JavaScript
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License
Awesome Lists containing this project
README
# Window Position (window-pos)

A small native library to get the size and position of a window on windows.
## Installing
```
npm install git+https://github.com/Soundofdarkness/window-pos.git
```## Usage
```js
const windowPos = require("window-pos");// Rect: {top: 0, bottom: 0, left: 0, right: 0} or null if the window is not found.
const rect = windowPos.getWindowCoords("Window Title");// Size: {width: 0, height: 0}
const size = windowPos.getWindowSize("Window Title")
```## Dependencies
- [Lodash.Clone](https://www.npmjs.com/package/lodash.clone) [MIT](https://github.com/lodash/lodash/blob/master/LICENSE)
- [Node-Addon-Api](https://www.npmjs.com/package/node-addon-api) [MIT](https://github.com/nodejs/node-addon-api/blob/master/LICENSE.md)Dev Dependencies:
- [Node-Gyp](https://www.npmjs.com/package/node-gyp) [MIT](https://github.com/nodejs/node-gyp/blob/master/LICENSE)
- [Mocha](https://www.npmjs.com/package/mocha) [MIT](https://github.com/mochajs/mocha/blob/master/LICENSE)## License
This project is licensed under the terms of the MIT License.
See [License](/License)