node-window-control
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

node-window-control

Manage windows in Windows

Install

To install this package, just run

npm install node-window-control

Quick start

The following example shows how to get the currently focused window's title and hide it.

const { windowManager } = require("node-window-control");

const window = windowManager.getActiveWindow();

// Prints the currently focused window bounds.
console.log(window.getBounds());

// This method has to be called on macOS before changing the window's bounds, otherwise it will throw an error.
// It will prompt an accessibility permission request dialog, if needed.
windowManager.requestAccessibility();

// Sets the active window's bounds.
window.setBounds({ x: 0, y: 0 });

Documentation

The documentation and API references are located in the docs directory.

Thanks

node-window-managerhttps://github.com/sentialx/node-window-manager#readme

Package Sidebar

Install

npm i node-window-control

Weekly Downloads

1

Version

0.3.3

License

MIT

Unpacked Size

9.54 MB

Total Files

60

Last publish

Collaborators

  • linghuchong