node-webkit

Node-Webkit on Windows runs in 3 different processes?

牧云@^-^@ 提交于 2019-12-02 02:48:54
I'm sorry if this is a duplicate. I tried to Google the answer but it isn't very helpful. If I run a node-webkit app using nw . , and then open Windows Task Manager, there are three different processes by the name of nw running. I have checked repeatedly but there is a single node-webkit application running on my system. Also, if I "End Task" any one of them, the app exits and the other two processes vanish too. Is that normal behaviour? Is there a documented explanation behind this? Here is a screenshot. Sidenote: I used Process Explorer to see the details of these processes and found out

How execute a combination key on node-webkit like c# sendkeys

ぐ巨炮叔叔 提交于 2019-12-01 14:45:47
I made a Webkit app that register small codes on txt like snippets to use later on other apps. I can find my "snippet" and set the content on clipboard. But also , I would like run "Ctrl+v" keys combination on Node-Webkit like the SendKeys function on C#. Now I need press manually keys combination "Ctrl+v" to paste in another app. Also i was thinking how run another file like a small exe program that do it the SendKey function and close it. But I prefer a node-webkit function without call other script or exe program. It ´s posible to do it , and How can i do it ? Thanks guys. Well, I was

PHP开发Linux桌面应用和Android应用思路

大兔子大兔子 提交于 2019-12-01 07:46:47
PHP7中用opcache.file_cache导出脚本opcode实现源代码保护 http://my.oschina.net/eechen/blog/539995 下载PHPDroid: 基于WebView和PHP内置HTTP服务器开发Android应用 http://my.oschina.net/eechen/blog/655689 截图是我在Ubuntu上用arm-none-linux-gnueabi-gcc交叉编译的Android版PHP(静态链接glibc等库). adb push ./php /data/local/tmp 上传到Android系统(小米4),直接 ./php -S 127.0.0.1:8181 跑Web服务. 套个WebView就能用PHP(内置Web服务器和SQLite引擎)写Android应用了. 生成的php用arm-none-linux-gnueabi-strip去掉符号表,zip压缩后约5MB. 少用些图片,整个应用做到8MB以内应该没什么问题. http://my.oschina.net/eechen/blog/298027 HHVM和PHP7都已经发出来了,还有具体的编译打包方法,可以自行按照教程构建出Nginx/Apache/MySQL,至于Android版PHP的交叉编译构建,参考的是DroidPHP的方法. 我的Android

Create window-like menu on OS X

淺唱寂寞╮ 提交于 2019-11-30 09:41:45
I'd like to create a same sort of tray menu like this application . Because it is on the list of applications that use node-webkit/nw.js, I think it's possible. I have looked through all the documentation and couldn't find anything on how to achieve that. Searching Google also wasn't really fruitful. Maybe one of you guys has done this before and could send me in the right direction? First you need to prevent app appear in taskbar { "name": "My App", "version": "1.0.0", "main": "app.html", "window": { "show": false, "show_in_taskbar": false } } Then you need to create tray (top bar) menu:

Create window-like menu on OS X

[亡魂溺海] 提交于 2019-11-29 14:55:20
问题 I'd like to create a same sort of tray menu like this application. Because it is on the list of applications that use node-webkit/nw.js, I think it's possible. I have looked through all the documentation and couldn't find anything on how to achieve that. Searching Google also wasn't really fruitful. Maybe one of you guys has done this before and could send me in the right direction? 回答1: First you need to prevent app appear in taskbar { "name": "My App", "version": "1.0.0", "main": "app.html"

Desktop applications with Meteor.js

空扰寡人 提交于 2019-11-28 16:22:01
问题 The options I've found for creating desktop applications in HTML , CSS , and JavaScript are: Electron (formerly Atom-Shell) NW.js (formerly Node-Webkit) However, there doesn't seem to be any clear implementation for using meteor.js with these. NW.js I've seen some other questions of people asking this, but no implementation. Can't even figure out by the answers what I should be trying to put together: Meteor leaderboard app on node-webkit Demeteorizer with node-webkit How can I start a Meteor

How to access a RowDataPacket object

安稳与你 提交于 2019-11-27 19:36:37
I'm currently developing a desktop application with Node-webkit. During that process I need to get some data from a local MySQL-database. The querying works fine, but I can't figure out how to access the results. I store all of them in an array that is then passed to a function. In the console they look like this: RowDataPacket {user_id: 101, ActionsPerformed: 20} RowDataPacket {user_id: 102, ActionsPerformed: 110} RowDataPacket {user_id: 104, ActionsPerformed: 3} And here is the query structure: var ret = []; conn.query(SQLquery, function(err, rows, fields) { if (err) alert("..."); else { for

What is the Visual Studio Code editor built on

孤人 提交于 2019-11-27 16:57:32
What underlying technologies/libraries is Microsoft's new (free) cross platform editor Visual Studio Code (Launched 5/29/2015) built on? There are rumors that it's just Github's Atom Editor rebranded. Visual Studio Code is built using web technologies on top of Github's Electron . Electron is an app runtime for writing native apps that uses Chromium (which Google Chrome is built on) for rendering the interface and node.js for local APIs (example: file system access) , it was built primarily as the shell for Github's Atom code editor. (Note: Electron is very similar to NW.js ) . Node.js is a

Ask user where to save file with Node.js

耗尽温柔 提交于 2019-11-27 16:32:16
问题 I'm creating an app using node-webkit, so there's a lot of javascript. I have written a node.js function that will take a screen shot and save it to the disk, however, it saves it to the project root dir and I would like to prompt the user to choose a save location, but I cannot find a way to create a save file dialog. Current code: screen_shot.js: var fs = require('fs'); exports.buildFile = function(name, value) { var img = new Buffer(value, encoding='base64'); fs.writeFile(name, img,

Uncaught Error: Module did not self-register

感情迁移 提交于 2019-11-27 11:44:39
I try to use node-vlc with nw.js (v0.12.0-alpha2). When i launch my app without nw.js it works, but when i launch it with nw.js i got an error: Uncaught Error: Module did not self-register.", source: /home/alexis/Bureau/dev/jukebox/node_modules/vlc/node_modules/ffi/node_modules/bindings/bindings.js (84) I tried some commands with nw-gyp but it couldn't help me. I am on Ubuntu 14, 64-bit. If you've upgraded node then npm rebuild might fix this for you Thami Bouchnafa For me: rm -r node_modules then npm install I had a similar issue with another product and my fix was to change the version of