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
61
S
21
G
4
Posts: 355
Reputation: 6,349

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
278
S
104
G
86
Posts: 7,313
Reputation: 84,296

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
61
S
21
G
4
Posts: 355
Reputation: 6,349

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
278
S
104
G
86
Posts: 7,313
Reputation: 84,296

Post » Wed Feb 17, 2016 1:52 pm

Thanks!
B
61
S
21
G
4
Posts: 355
Reputation: 6,349


Return to How do I....?

Who is online

Users browsing this forum: alex3770, Davlin, Google [Bot], VulcanSpawnWolf and 1 guest