At my work I was asked to propose a user interface to open .pdf and excel files (on Adobe reader and excel 2010) installed on a Windows Tablet
I managed to create this: https://dl.dropboxusercontent.com/u/21568607/Tablet_InterfaceB/index.html
My idea was to create this interface and export it to .exe using the NW.js exporting function.
Unfortunately I didn't check if Construct 2 had the function to open external files and for now I haven't succeeded to do it.
Please, does somebody knows of a way to do this?
Maybe some plugin or something else?
If you add NWjs object to the project then do something like Button on clicked NWjs Run "e:\downloads\1.pdf" obviously replacing this with the path and .pdf
You can also use the NW.js file actions to browse for a file, and as long as the file associations are setup - i.e. there are programs to handle xls and pdf files installed on the system - then NW.js will launch the relevant application after a file is selected.
Eample attached (requires r212 or above): Launch File from NW.js.
Develop games in your browser. Powerful, performant & highly capable.
Wow, it works!! Thank you guys!
btw, first I was using document names with spaces between, but it seems it will only open files without spaces ("01_filename.pdf" instead of "01 filename.pdf")
Thanks!