How do I open a folder from a C2 game?

Get help using Construct 2

Post » Tue Feb 16, 2016 7:38 am

I just need to make a button that open a specific folder (Documents/MyGame)

Is it possible? And how?
B
60
S
20
G
4
Posts: 350
Reputation: 6,214

Post » Tue Feb 16, 2016 10:00 am

What do you mean "open a folder". Are you implying displaying it in the windows explorer ?
Are you using NW.JS and its dialogs or are you attempting a browser to open a folder on the local hard drive ?

Please be more specific on what you are wanting to exactly achieve and under which circumstances.

NW.JS can open a folder using the "Show folder dialog" action for example.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
267
S
95
G
66
Posts: 7,210
Reputation: 73,086

Post » Tue Feb 16, 2016 5:01 pm

Kyatric wrote:What do you mean "open a folder". Are you implying displaying it in the windows explorer ?
Are you using NW.JS and its dialogs or are you attempting a browser to open a folder on the local hard drive ?

Please be more specific on what you are wanting to exactly achieve and under which circumstances.

NW.JS can open a folder using the "Show folder dialog" action for example.



I need to open a specific folder in NW.js, showing the actual folder content directly from the windows browser. Or if the dialog is the only option, is there a way to tell it to use a "default" place?
B
60
S
20
G
4
Posts: 350
Reputation: 6,214

Post » Wed Feb 17, 2016 11:06 am

Using the NW.JS "Open in browser" action and actually setting the folder you want to use will open it in the explorer.
(ie : Open in browser "c:\windows")
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
267
S
95
G
66
Posts: 7,210
Reputation: 73,086

Post » Wed Feb 17, 2016 1:52 pm

Thanks!
B
60
S
20
G
4
Posts: 350
Reputation: 6,214


Return to How do I....?

Who is online

Users browsing this forum: QuantumMMX, UberLou and 15 guests