How do I Get NW.js to Run/Open a File?

Get help using Construct 2

Post » Tue Oct 13, 2015 3:49 pm

Hi,

I'm writing a tool (deploying with NW.js) and want to let a user attach an external file. It appears that I can do this with "NW.js: Run file" but when I trigger it, nothing ever comes up.

Is there some sort of limitation to this? Or a way to get it to work?
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Tue Oct 13, 2015 4:02 pm

YetAnotherSuperhero wrote:Hi,

I'm writing a tool (deploying with NW.js) and want to let a user attach an external file. It appears that I can do this with "NW.js: Run file" but when I trigger it, nothing ever comes up.

Is there some sort of limitation to this? Or a way to get it to work?


What do you mean by attach a file?

If you look at THIS you will see I have an example that browses for a file then executes it. It obviously relies on the fact that the PC has the correct file associations setup.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,375
Reputation: 58,432

Post » Tue Oct 13, 2015 4:03 pm

By attach, I mean keep a link in the program that the user can click on.
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074


Return to How do I....?

Who is online

Users browsing this forum: db3344, leena222, mindragon73, Yahoo [Bot] and 18 guests