Description

This extension is for Windows and Ubuntu.

Execute third-party applications from your GameMaker: Studio games.

Open or run any file type, whether .EXE or not. Supports "wait" param.

The DLL's full source code included.

End User Licence Agreement (EULA).

Changes in 9.0.3

Edited "main.cpp" to be the same on both platforms.

Version 9.0.3. Published September 12, 2017

Created with GameMaker: Studio v1.4.1767

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Anonymous 28 October 2017


Gravatar

Matthew T 07 October 2017

Works as expected

Samuel was prompt and helpful in answering a question I had for him regarding this extension.

It works like a charm!


Gravatar

Anonymous 05 October 2017


Gravatar

Anonymous 18 August 2017

This works! Thank you :)

Also, how would I make so it can detect that the application is open?

This review was left for a previous version of this asset.

Logo

Samuel Venable (Publisher) 25 August 2017

Hi.

I haven't yet looked at my options for doing this on Linux, but I have for Windows.

Basically, I'd have to use the C++ function GetExitCodeProcess(), and it will return STILL_ACTIVE, if the application is still running. The problem with that however, is if it happened to exit with that exit code, it will still return STILL_ACTIVE. This means I could check whether the application is running, but sometimes after it closes the function will still think it's opened for who knows how long. It's inconsistent, and not very practical. So unfortunately, unless I find some other, better/cross-platform means to check if an application is running, I won't be adding this. Sorry for the inconvenience.

You can have a look here for more information on the subject:
https://stackoverflow.com/questions/1591342/c-how-to-determine-if-a-windows-process-is-running

Regards.
Samuel


Gravatar

Rob Q 27 September 2017

Doesn't support parameters.

I would love to get this working, because I really need it. Especially the "wait" functionality. The problem is just that this does not seem to support parameters.

These commands don't work:
ExecuteShell("cmd %LOCALAPPDATA%\\ShootMUp\\tools\\convert-map.bat", true); //Just opens a regular shell
ExecuteShell("%LOCALAPPDATA%\\ShootMUp\\tools\\convert-map.bat", true); //Doesn't do anything
ExecuteShell(%LOCALAPPDATA%\\ShootMUp\\tools\\mogrify.exe -resize "+string(size)+"x"+string(size)+" -format jpg \"%LOCALAPPDATA%\\ShootMUp\\__currentmap\\terrain\\"+string(size)+"\\*.jpg\"
, true); //Seems to do nothing

I really hope this gets fixed... Soon :(

EDIT:
You're right, sorry. Its a good asset, but I'm missing some functionality. Especially the ability to hide the shell popping up. I've changes parameter settings to this and they now work:

ExecuteShell("cmd /C \"cd %LOCALAPPDATA%\\ShootMUp\\tools\\ && .\\pack-map.bat\"", true);

(no review space left, will email)

Logo

Samuel Venable (Publisher) 25 September 2017

Hi Rob Q.

Please consider contacting me for assistance, rather than rating one star, because the extension doesn't do exactly what you're looking for.

The ability to use a wait parameter requires something that YoYoGames broke on the Windows runner. On Linux this simply isn't an issue.

I'm looking at your first example and it looks like you are trying to change the color of your command prompt's text, but you aren't doing it the way I'm familiar with. One of the parameters you listed was "$f", but using a "$" isn't one of your options AFAIK.

Parameters work just fine, they just need to be done in such a way that is supported by CreateProcess() on Windows.

You can't use "start". So remove that, fix the color parameter, and you should be fine, with the first example you gave.

For example, you may do this to change the color of the command prompt's text to yellow:

ExecuteShell("cmd /k color e", false);

It works, I just tested it.

Consider contacting me.

Sam


Gravatar

Anonymous 28 May 2017

Amazing!

It worked like a charm, even when i couldn't figure out how i needed to do something, the publisher answered within a day and was very nice. It's a cool idea and it works perfectly!

This review was left for a previous version of this asset.


Gravatar

Alex M 26 May 2017

It does what is promised!

Its free... Its open source.... It runs on Linux... You sir are the best!

This review was left for a previous version of this asset.


Gravatar

Sylvain L 01 May 2017

free, open source, and full access to shell :)

Simple but powerfull
thx.

ExecuteShell("cmd.exe /C \"dir /B/S/AD > dirs.txt\"",0);

This review was left for a previous version of this asset.


Gravatar

Tobias B 16 April 2017

This review was left for a previous version of this asset.


Gravatar

Attila B 15 December 2016

Does as expected, plus awesome support from dev!

Works great! The code is super simple. Even when I got stuck, the developer responded to me quickly and helped get me back on track :)

This review was left for a previous version of this asset.


Gravatar

Adderly C 02 October 2016

Great Extension

This is a great extension and works just fine. No doubts. But it will be even better if you include a little manual or more detailed comments to explain and understand how to use the arguments properly.

This review was left for a previous version of this asset.


Gravatar

Anonymous 15 September 2016

Fantastsic

Works on two different platforms... what more could you ask for? Free as well! keep up the good work!

This review was left for a previous version of this asset.


Gravatar

Rakin I 10 September 2016

Worked Exactly Like Described

I'm more than happy with this extension! Though I cannot use any arguments which are really important to my creation, that's no blame on this extension so 5 Stars!

This review was left for a previous version of this asset.


Gravatar

Przemek L 07 March 2016

Would be more useful if not broken

"Arguments can be used like DOS and Run Commands" is why I downloaded it in the first place. No matter the approach this extension is unable to run programs with arguments.

This review was left for a previous version of this asset.


Gravatar

Anonymous 24 February 2016

Great, but..

In a comment you said "Arguments can be used like DOS and Run Commands." But I just can not get this to work in any way. All I get is an error saying "Windows cannot find [command]. Make sure you typed the name correctly, and then try again". But I can assure you I typed it correctly. I tested with just opening up readme.txt, then I typed "start readme.txt", should do the same thing, but got an error. Am I doing something wrong, or is this feature not working?

This review was left for a previous version of this asset.


Gravatar

Stetson S 28 September 2015

Problems with arguments

Thank you very much for making this!

Launching other .exe with this works perfectly. Does as advertised so 5 stars.

However... Currently I am trying to use GM:Studio to use SOX audio to combine files using arguments, and I am not having much luck. I can launch .exe's using the extension, but I cannot managed to get it to get it to handle more than one space in the argument.

In the example you provide in another comment you show how you can open a single file, but I need multiple spaces to handle many files at a time. (8 files would mean 7 spaces. n-1 kinda thing)

Any help would be fabulous.

This review was left for a previous version of this asset.


Gravatar

Jorge H 09 August 2015

Very useful indeed!

Man, this is so great! I was looking for this exactly, as I use GameMaker not just for games, but for graphical interfaces and applications as well, when GM:S was sandboxed I was hesitant in buying it.
But now I don't regret anything!
Some documentation would be nice, but it's really intuitive in fact, so I, personally, don't need it. But maybe less experienced used would appreciate it, though.

Kudos to you man!

This review was left for a previous version of this asset.


Gravatar

Anonymous 02 December 2014

Just what I needed!

This was a great find for me, as I am going to be creating a launcher for my game so I can auto update it. Without this tool it would be impossible. So glad it is free :D

This review was left for a previous version of this asset.

Logo

Samuel Venable (Publisher) 05 December 2014

Great! Glad I could help! I made it free because it's under like 10 short lines of C++ code so it was the least I could do. :)


Gravatar

Jim M 25 September 2014

Extremely Useful

Thanks for adding this functionality back into GameMaker!
Completely easy to use, very straightforward.

Launching a file with the wait arg set to zero is fixed in the latest update, and everything is great!
Not much documentation with this, but nothing is really needed to figure it out.

This review was left for a previous version of this asset.

Logo

Samuel Venable (Publisher) 23 January 2015

UPDATE 1/23/2015 I have good news. You arent the only one to request documentation. I'm not in huge favor of keeping info doc'd as far as bugs and functions available for all versions released, because I like to always encourage updating to the latest version if you mean business about using my extensions. But what I have done is provided a doc listing all my extensions' function lists and usage info based on the latest versions released publically. To access this, have a look at my "support" links on each asset page. :)

Package contents

Total size 17 KB

What is the issue?

Back to Top