windowz

0.1.0 • Public • Published

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

/windowz/

    Package Sidebar

    Install

    npm i windowz

    Weekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • noamokman
    • omrilitov
    • eladbezalel
    • amirschl