https://github.com/pendo324/get-window-by-name
Get window info using executable name
https://github.com/pendo324/get-window-by-name
node node-gyp node-module node-native nodejs winapi
Last synced: 4 months ago
JSON representation
Get window info using executable name
- Host: GitHub
- URL: https://github.com/pendo324/get-window-by-name
- Owner: pendo324
- License: mit
- Created: 2017-09-29T04:10:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-20T08:19:49.000Z (over 1 year ago)
- Last Synced: 2025-10-20T07:25:00.348Z (8 months ago)
- Topics: node, node-gyp, node-module, node-native, nodejs, winapi
- Language: C++
- Homepage:
- Size: 11.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get Window by Name
## Building
To compile the extension for the first time, run
```
$ npm i
$ npm run configure
$ npm run build
```
All subsequent builds only need `npm run build`
## Compatibility
Currently, this only runs on Windows. Linux support is being considered. macOS support will probably never come, since I'm not even sure anything on macOS actually sets a window title (I'll happily add macOS support if someone proves me wrong).
## Usage
Just require the module
```
const test = require('./NativeExtension.node');
```
and use the (only) `getWindowText` function
`getWindowText([executableName])`:
- executableName (optional): the name of the executable that you want the info for. Omitting this argument will return every process
- Returns an `Array` of processes that match the argument
`process` Object structure:
```
{
processId: Number,
processName: String,
processTitle: String
}
```
## Todo (pull requests welcome!)
- Add Linux support
- Fix tests
- Add automatic build server