Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

seiyria/winpos

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

winpos

A small nodejs utility to get the position of all windows matching a particular name on the screen.

Usage

npm i winpos

import winpos from winpos;

// synchronous usage - this gets the bounds of all windows named "Discord"
const windows = winpos('Discord', true);

// async usage - this gets the bounds of all windows named "Discord"
winpos('Discord', (err, windows) => {

});

The return value will be in the format [ { Left: number, Top: number, Right: number, Bottom: number } ]. Each entry represents a different instance of a window.

Restrictions

This uses edge-js, so it only runs on windows, and from a node environment - it will not work in the browser.

About

A small nodejs utility to get the position of all windows matching a particular name on the screen.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published