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