Node Webkit not running files that run in terminal

0 favourites
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • I am having a problem in that I am trying to run python scripts from node webkit but only ones that run in a GUI (Like Notepad for instance) will run. Any help will be appreciated, so don't hesitate to post!

  • When you use "Run file", the application will be launch the same way as if you doubled click on it.

    "Run file

    Run the file at an existing file path. This is analogous to double-clicking the file in the OS file explorer. For executable programs, it will attempt to run the program; for other file types, it will open the default associated program, such as the system default image editor if an image file is given"

    I can misunderstood though, does your file do anything while being double-clicked in the explorer? (Maybe it is possible to add command lines in the path)

  • Aphrodite Well it's just a windows Batch file that will run in terminal. Maybe one of the devs would know something about it though?

  • Bump. (Sorry, but I really need this!)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have ended up at this exact same problem, did you ever figure out a way to do it?

  • No, sorry. My only guess is that it is something to do with the C2 renderer, because if it tries to start up the file as one of it's child processes, then the C2 may not like it. I don't know, but I would be REALLY useful if one of the devs could maybe have a look at it? It's definitely a problem.

  • Hi, I'm having the same problem when trying to run an external exe file with the node webkit "run file". It doesn't open.

    And if I look to the task administrator in windows (ctrl+alt+supr), I can see the exe file running as a process, but not as an application.

    The exe file I'm trying to open it's another game I made with contruct (win 32 expo with node webkit), but that I compiled togheter with a batch file into a single exe (with "advanced bat to exe" application).

  • couldn't you just make a shortcut with the launch params you need or write a shell script?

  • Saddly a shortcut does the same thing, What we want is to have the terminal window open with the script we have craeted in a .bat file. The issue must be in node webkit and i hope the devs take a look at it. Im trying to come up with a workaround but nothing so far :/

  • Create two bat files :


    start C:\Users\%username%\Desktop\project_folder\File2.bat

    rem Notice I didn't use %cd%\File2.bat because preview runs from a temp folder;


    echo CMD STARTED

    Now in your project back in construct

    • add the browser plugin to your project
    • create a variable named cd and set it's value to the path of your first bat file with \\ 's

    To launch cmd Browser Execute Javascript :


    With that said there's probably a way easier way to do this

  • Thanks! I'll check this out. If it works then you are awesome! (Sadly, the project I originally needed this for is gone.)

  • You usually want to tag Ashley in your thread if you want them to see your question. Ashley

  • Ah thanks!

  • Ashley Could you take a look at this please?

  • Why are you executing javascript directly and not using the 'run' action from the node-webkit object?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)