Skip to content

nachos/windowz

Repository files navigation

windowz

Windowz is a tool to handle os windows

Linux OSX Windows Coverage Dependencies DevDependencies
Coverage Status

Have a problem? Come chat with us!

Join the chat at https://gitter.im/nachos/windowz

Installation

  $ [sudo] npm install windowz --save

Examples

Initialize

var windowz = require('windowz');

getAll

Get a list of all opened windows

var windows = windowz.getAll();

getTitle(windowHandle)

Get the title of a window

var title = windowz.getTitle(windowHandle);

setToForeground(windowHandle)

Set a window to foreground

windowz.setToForeground(windowHandle);

minimize(windowHandle)

Minimize a given window

windowz.minimize(windowHandle);

maximize(windowHandle)

Maximize a given window

windowz.maximize(windowHandle);

activate(windowHandle)

Activate a given window

windowz.activate(windowHandle);

show(windowHandle)

Show a given window

windowz.show(windowHandle);

isForeground(windowHandle)

Returns if the window is the foreground window

var isForeground = windowz.isForeground(windowHandle);

isMinimized(windowHandle)

Returns if the window is minimized

var isMinimized = windowz.isMinimized(windowHandle);

setTopMost(windowHandle)

Sets the window to top most

windowz.setTopMost(windowHandle);

setToForeground(windowHandle)

Sets the window to the foreground

windowz.setToForeground(windowHandle);

close(windowHandle)

Closes the given window

windowz.close(windowHandle);

Run Tests

  $ npm test

License

MIT

About

A cross-platform windows manager written in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published