windowz
v0.1.0
Published
A cross-platform windows manager written in Node.js
Downloads
6
Readme
windowz
Windowz is a tool to handle os windows
Have a problem? Come chat with us!
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