winpos

1.0.1 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i winpos

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.24 kB

    Total Files

    5

    Last publish

    Collaborators

    • seiyria