windows-window-node-plugin
v5.6.0
Published
node plugin to create desktop windows for windows os
Downloads
35
Maintainers
Readme
Windows window node plugin
node plugin to create desktop windows for windows os
basic example
let Repeater = require('function-repeater');
let {Window} = require('../src/index');
let window = new Window();
window.makeWindow();
window.setGeometry(100, 100, 250, 40);
window.setLines(2, 20);
window.show();
window.setLine(0, "hi there !!");
let i = 0;
let increment = new Repeater(
() => window.setLine(1, "" + i++),
1000, true);
new Repeater(
update => {
window.update();
if (!window.hasWindow) {
increment.stop();
update.stop();
}
}, 5, true);