How do I load file from files folder?

Just started using Construct 2? Post your questions here

Post » Fri Jun 17, 2016 9:44 am

I have a doc file that I would like to open whenever i click on button.
There can be any file extension not only doc. For example, If user clicks on button, it should load a file from the files folder, file.pdf, it should be opened using the default program to view this file or using the broswer.

Is this possible yet?
B
11
S
3
Posts: 44
Reputation: 713

Post » Fri Jun 17, 2016 4:53 pm

https://www.scirra.com/manual/162/nwjs

nw.JS Run file action

Run file
Run the file at an existing file path. This is analogous to double-clicking the file in the OS file explorer. For executable programs, it will attempt to run the program; for other file types, it will open the default associated program, such as the system default image editor if an image file is given.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Sun Jun 26, 2016 4:39 pm

Thank you!
B
11
S
3
Posts: 44
Reputation: 713


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests