Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T16:32:49.000Z (over 5 years ago)
- Last Synced: 2024-11-05T12:12:34.291Z (about 2 months ago)
- Topics: native-addon, nodejs, windows
- Language: JavaScript
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License
Awesome Lists containing this project
README
# Window Position (window-pos)
![GitHub](https://img.shields.io/github/license/Soundofdarkness/window-pos?style=for-the-badge)
![GitHub package.json version](https://img.shields.io/github/package-json/v/Soundofdarkness/window-pos?style=for-the-badge)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)