Page 1 of 1

close application programmatically

Posted: Fri Jul 11, 2014 1:38 pm
by sedrok
close application programmatically :

1-st way javascript code
process.exit(code=0);
2-nd way javascript code
var win=require('nw.gui').Window.get();
            win.maximize();
            win.show();

            win.close();