windowz
Windowz is a tool to handle os windows
Linux | OSX | Windows | Coverage | Dependencies | DevDependencies |
---|---|---|---|---|---|
Have a problem? Come chat with us!
Installation
$ [sudo] npm install windowz --save
Examples
Initialize
var windowz = ;
getAll
Get a list of all opened windows
var windows = windowz;
getTitle(windowHandle)
Get the title of a window
var title = windowz;
setToForeground(windowHandle)
Set a window to foreground
windowz;
minimize(windowHandle)
Minimize a given window
windowz;
maximize(windowHandle)
Maximize a given window
windowz;
activate(windowHandle)
Activate a given window
windowz;
show(windowHandle)
Show a given window
windowz;
isForeground(windowHandle)
Returns if the window is the foreground window
var isForeground = windowz;
isMinimized(windowHandle)
Returns if the window is minimized
var isMinimized = windowz;
setTopMost(windowHandle)
Sets the window to top most
windowz;
setToForeground(windowHandle)
Sets the window to the foreground
windowz;
close(windowHandle)
Closes the given window
windowz;
Run Tests
$ npm test