In my nwjs app, I load a _launch.js file from an HTML file:  <html> <body> <script type="text/javascript" src="_launch.js"></script> </body> </html>   And in my _launch.js file, I fire up the the No...
Having recently switched to three.js as my renderer, I am now wanting to set up a system for mapping textures. However, I'm not too sure on what the best practice for this is. Here is my use case   I have levels made of a lot of box geometries I...
I am trying to use execFile and log the stdOut that gives the percentage done on the task, but the callback function:  var child = require('child_process');  child.execFile("path/to/the/file", options, function (error, stdout, stderr)...
When I build my app, 'fs' module doesn't work. So, it must write file, but when I start my app nothing happens. But if I start my app with:  $ /path/to/app nw   It works correctly. What's wrong?   Some code, where I use fs:  function...
I am currently working on a JavaScript(pure js) based game. The game contains 5 large sprite sheets(e.g. 2861 × 768 and 4096 × 4864). When the game starts, all 5 sprite sheets are preloaded to canvas elements. Three of those 5 sprites represent tog...
I’m developing simple node-webkit application for Windows (Vista, 7, …) and I need to use some WinAPI functions, specifically, RegisterHotKey and SendInput, to bind system-wide hotkeys and make keystrokes based on that. There’s no such API supp...
I have a Node Webkit Desktop App and need to download files from the server and save locally for when users are offline.  I can download and save a file when I know what the file name is, but how do I read the contents of a directory on the server so...
I'm currently writing a web app that I later intend to deploy using node-webkit. I want to use as little node.js as possible so that I have the option to easily deploy to the web without having to rewrite large portions of the code.  I'm usin...
I have a package.json file that looks like:  {     "name": "title",     "description": "description",     "version": "0.1",     "main": "https://path-to-application/",     "window...
My node-webkit application consists of a control window and a presentation window.  The control window gathers data and eventually launches the presentation window via the window.open function.  The presentation window now has access to some informat...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.