windows-window-node-plugin

node plugin to create desktop windows for windows os


Keywords
windows, desktop, window, native, plugin
License
ISC
Install
npm install windows-window-node-plugin@5.6.0

Documentation

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);