Commandline capabilities

This forum is currently in read-only mode.
  • I'm currently building an automation application, and for that purpose it is pretty much necessary that I can use the program via command line, basically by doing something like this:

    application.exe -i input -o output[/code:2lb4pubd]
    However, no kind of functionality exists to read commandline switches, which is why I request this could be implemented in some form.
  • Additionally, functionality to run other commandline programs and read their stdout would be very useful. For example, I'd like to use this little utility called dumpsuid.exe that dumps the SegmentUID of a Matroska media file, with the simple usage of dumpsuid file.mkv. Since there's really no way to achieve this functionality within Construct (nor would it be really necessary), having the ability to use cmd utilities / software like this would be great.

  • Construct can't do this right now - you could have a shot at making a plugin to do it, or ask another coder to try. Construct wasn't really designed for this, it's primarily oriented as a game creator.

  • I'm currently building an automation application, and for that purpose it is pretty much necessary that I can use the program via command line, basically by doing something like this:

    application.exe -i input -o output[/code:2xlzfwyi]
    However, no kind of functionality exists to read commandline switches, which is why I request this could be implemented in some form.
    

    Maybe, AutoIt can help?

  • Construct wasn't really designed for this, it's primarily oriented as a game creator.

    I know, but it's a shame if Construct will continue to be a lackluster choice for application development. I would say commandline switches are quite vital for this side of development.

    Maybe, AutoIt can help?

    Might be, but it'd add one more software required for using the thing via commandline, which is quite inconvenient in terms of distributing the software - there are many people that would benefit a lot about this software if it were easily usable via commandline.

  • Daiz, you can join several .exe's into one .exe. Then you can distribute a single file. The main problem - you must write the tasks (=code) for doing something that you want (and be familiar with some kind of scripting). Try AutoIt (free), vTask (shareware, but really powerfull) or xStarter (shareware for all, but for Russian speaking people - free ).

    By the way, tasks can be very complicated (it depends ONLY on your skill). In case you familiar with Russian - I can post one more nice prog for automation, which has some underground features (written by real cracker from my country).

    P.S. maybe I misunderstand, but do you want to use Construct as automation script? Or as automation shell for end-user? What exactly you would like to automate (file operations, scores, inputs, patching...)?

  • I would like to use the program completely via commandline, so that I can use it in a batch file that has some time-consuming operations that do not need to be monitored when they're running, which is why it would be ideal that no input is needed from the user when the program actually runs, as everything is defined already in the batch file.

    Basically I want to use my program like this:

    app.exe -t template -i input -o output[/code:hh7yzyxg]
    
    What it would do is to open the program, load the input, do things to the input based on the template, save the output to the specified file and terminate the program.
  • It could be done quite easily via a plugin, there's numerous command line parsing classes which could be implemented fairly simply.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • not to derail but I'm really curious:

    Why not do it with a traditional language instead? is this program something that would be easily done with Construct?

    Now, on topic: write a proxy program that creates a text file with the options, and read them within your construct app.

    As Yaraslau said, you can then merge the .exe files, but I have no idea how.

    Yaraslau if you can explain or point to a resource that does, that'd be great.

  • Why not do it with a traditional language instead?

    Because I don't have basically any C/C++ coding capabilities

  • :

    As Yaraslau said, you can then merge the .exe files, but I have no idea how.

    Yaraslau if you can explain or point to a resource that does, that'd be great.

    It's pleasure for me to help.

    There are three known (at least for me) program (two shareware and one freeware), which can merge different .exe's. More correct: which can merge .exe with other types of files (.ico, jpg, dll...whatever you want).

    The most simple way (BoxedApp Packer):

    <img src="http://i26.tinypic.com/o6zk2r.jpg">

    It's shareware, but you can contact me by pm to help with this.

    If you need more progs - drop a line here.

  • Nice. This could prove useful.

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