file execution

Get help using Construct 2

Post » Fri Jun 21, 2013 7:23 pm

hi,

im new to this forum and im trying to run an exe file from Construct 2. The file is imported to my proyect but i dont know how to execute the file.

Is this possible?
if yes, can you explain me plz?
B
5
Posts: 14
Reputation: 258

Post » Sat Jun 22, 2013 9:42 am

Even with javascript, I don't think there's any way you could run an executable from what's essentially a web page. You could download the file (with the Browser -> Go to URL action), but not open it.
B
57
S
15
G
11
Posts: 912
Reputation: 12,581

Post » Sat Jun 22, 2013 4:09 pm

Hi,

im exporting my app as a desktop exe (winx86, winx64, linux, etc) not as a web page.

so if i can run my app as an exe file i guess i can call other exes to be executed.

am i wrong?
B
5
Posts: 14
Reputation: 258

Post » Sat Jun 22, 2013 4:14 pm

You are wrong.

The exe still runs in what's basically a web environment. The exported executable is simply the HTML5 game running in its own web browser as a sort-of wrapper.
B
57
S
15
G
11
Posts: 912
Reputation: 12,581

Post » Sat Jun 22, 2013 4:23 pm

Ok,

thanks for that.

So i cant run external files with c2...

thanks
B
5
Posts: 14
Reputation: 258

Post » Sat Jun 22, 2013 4:31 pm

I'm not saying that it's definitely impossible, just that it's not possible with standard web security practices. There might be some third-party plugins that could do this, but my knowledge of JavaScript isn't great enough to know the details.
B
57
S
15
G
11
Posts: 912
Reputation: 12,581

Post » Sat Jun 22, 2013 11:37 pm

Didi you try Nodejs plugin?
B
25
S
4
G
2
Posts: 318
Reputation: 2,481

Post » Sun Jun 23, 2013 3:38 am

Why are you trying to open other .exe files? You shouldn't need to do this at all.Tekniko2013-06-23 03:38:26
B
53
S
14
G
13
Posts: 818
Reputation: 17,424

Post » Mon Jun 24, 2013 10:53 am

It's more than possible, you can check here for one way to do it. I implemented shell in my node-webkit plugin, but haven't tested it thoroughly. There are other ways to do it, here's one of the possible ways

@GeometriX Node-webkit is not entirely browser environment, it's much more than that. Node-webkit is an app runtime based on Chromium and node.js, which means it can do anything that Chromium can, and also it can do anything node.js can, including creating servers, deleting all of your hard drive, and much more. JohnnySheffield2013-06-24 10:55:00
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,662

Post » Mon Jun 24, 2013 11:05 am

Thanks, @JohnnySheffield, I wasn't aware of the extent to which one could use Chromium as a real platform, instead of just a wrapper. I was under the impression that it was just a standalone Chrome.
B
57
S
15
G
11
Posts: 912
Reputation: 12,581

Next

Return to How do I....?

Who is online

Users browsing this forum: MAVERICK, tarek2 and 4 guests