How do I launch external program

Just started using Construct 2? Post your questions here

Post » Thu Nov 06, 2014 9:00 am

I'm building a game/program launcher menu for myself and would like to be able to launch external programs when clicking on a thumbnail of that program. For example, I click on a thumbnail of Borderlands and the game is then launched.

I know how to program the rest, I just need the ability to launch an external program by clicking a button / image.

This is only for myself (on a laptop for my kids really) so security isn't an issue. Ive searched the 'How Do I' forum as well as the manual but can't seem to find anything about it. Any help would be appreciated!

Thanks. :D
B
72
S
25
G
10
Posts: 383
Reputation: 11,166

Post » Thu Nov 06, 2014 11:37 pm

As far as I know its *not* possible to launch an external executive with html/js/whatever web related (normally). Http is shown in the browser and does not get access from anything outside the runtime. Mainly on security purposes, otherwise you could force a visitor, downloading something (js or other scripts), even a image file or something, containing some ad-/malware/virus/whatever code and forcing the client in the next second to execute this code which is decrypted as an executive file.

Maybe things changed in the past year, but this is what I know about that topic :/

Maybe its possible to do such with using an active-x component when you get it somehow implemented into the project/files, but that would make your site "IE-only".
B
24
S
14
G
9
Posts: 118
Reputation: 6,799

Post » Fri Nov 07, 2014 8:42 am

If it's just for you, and I notice you have a license, then Node-webkit my be the way to go (see attached - requires r184 or above). This has the ability to run any file you wish.
You do not have the required permissions to view the files attached to this post.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,483
Reputation: 59,752

Post » Fri Nov 07, 2014 6:44 pm

zenox98 wrote:This has the ability to run any file you wish.


Have we already gone that far in science? :D Thanks for the information!
B
24
S
14
G
9
Posts: 118
Reputation: 6,799

Post » Sat Nov 08, 2014 6:46 pm

Proxymity wrote:
zenox98 wrote:This has the ability to run any file you wish.


Have we already gone that far in science? :D Thanks for the information!


node webkit is the "computer executable" wrapper used in C2, it adds some features over chrome, notably open, run and write files on the system, but you will have an exe at the end.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests