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
66
S
22
G
4
Posts: 360
Reputation: 6,584

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
293
S
117
G
96
Posts: 7,310
Reputation: 71,069

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
66
S
22
G
4
Posts: 360
Reputation: 6,584

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
293
S
117
G
96
Posts: 7,310
Reputation: 71,069

Post » Wed Feb 17, 2016 1:52 pm

Thanks!
B
66
S
22
G
4
Posts: 360
Reputation: 6,584


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 48 guests