Description

[Made for GameMaker Studio 1.4 and GameMaker Studio 2]

This extension is for Windows, macOS, 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.

Very big thanks to Josh Ventura, for writing the widen() and shorten() scripts, enabling UTF-8 support on Windows.

End User Licence Agreement (EULA).

Changes in 9.3.0

Please replace all Scripts and Included Files in your existing projects to apply this update!!!

  • Added support for macOS.

Version 9.3.0. Published October 5, 2018

Created with GameMaker: Studio v1.4.1804

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Anonymous 20 October 2018


Gravatar

Vee F 08 October 2018


Gravatar

Anonymous 08 October 2018


Gravatar

Anonymous 02 October 2018

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


Gravatar

Furkan K 30 September 2018

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

Logo

Samuel Venable (Publisher) 05 October 2018

Hi Furkan K.

If there is a reason you knocked two stars off, but you don't say why, how am I supposed to know what I'm doing wrong? Did you want official Mac support? I can add that sooner than I had originally planned, if that helps at all.

Edit:

Just added official macOS support. :D

Thanks,
Samuel


Gravatar

Timo V 27 September 2018

it works!

It works, it is free, what do you want more in life? nothing.exe!

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


Gravatar

Anonymous 22 August 2018

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


Gravatar

Anonymous 17 July 2018

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


Gravatar

Filipe M 18 June 2018

Working fine

Awesome script, its working really fine and it is very easy to use. Congratulations!

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


Gravatar

Austin S 05 June 2018

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


Gravatar

Anonymous 16 May 2018

Grate job!!!

Hi there. First of all, this is amazing and i´m very greatefull
Now: I'm having some difficulties. I included an executable in the included files, within a group called Tools. If I give it the exact directory it runs without problems, but I'm trying to do it this way so there are no problems if anyone change it´s default installing directory, you could tell me what I'm doing wrong.
ExecuteShell(@'"" "' + program_directory + @'"\Tools\LD Tool v 0_0_1001.exe"', true);
Thank you very much and i hope my english is understandable.

EDIT:
Solved: ExecuteShell(@'"'+program_directory + @'\Games\LD Tool v 0_0_1001.exe"',true);

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

Logo

Samuel Venable (Publisher) 16 May 2018

Hi! :)

All of that seems right except for the quotes at the beginning.

Update your review if you have more questions or you may also contact me with the link at top of this page.

Try this:
ExecuteShell(@'"' + program_directory + @'\Tools\LD Tool v 0_0_1001.exe"', true);

Hopefully that is all you need. Let me know if this works for you!

I also recommend replacing program_directory with working_directory for faster debugging.

I'm glad to help!
Samuel


Gravatar

Guus T 15 April 2018

Excellent

Works amazingly well especially in GMS2 with the new GML \" option so you can properly enter filenames etc with spaces in them. I've not experienced any issue with the "wait" param, seems to work for me with Win10+GMS2!

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

Logo

Samuel Venable (Publisher) 15 April 2018

Hi Guus T.

This makes me very happy. I'm glad I could help! :)

Cheers!
Samuel


Gravatar

Jason C 28 February 2018

Solid

Solid job!

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


Gravatar

Tiago S 03 February 2018

Cool

Hello, can you help me with that window in cmd not appear when the code is executed? thank you.

ExecuteShell('cmd /C "cd C:\Users\%USERNAME%\AppData\Local\game\ && teste.bat "', true);

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

Logo

Samuel Venable (Publisher) 11 April 2018

Hello Tiago S.

I just published a special update that you and many others will enjoy! :)

Changes in 9.1.0
- Finally fixed that nasty bug on Windows with setting the wait argument to true.
- Added an optional third argument to allow opening files hidden on Windows.

Regards,
Samuel


Gravatar

Anonymous 25 November 2017

thank

Hello how could you make it work?

ExecuteShell("C:\Users\PC21\Desktop\pasta23\file.bat",1);

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

Logo

Samuel Venable (Publisher) 11 April 2018

Hello.

I just published a special update that you and many others will enjoy! :)

Changes in 9.1.0
- Finally fixed that nasty bug on Windows with setting the wait argument to true.
- Added an optional third argument to allow opening files hidden on Windows.

Regards,
Samuel


Gravatar

Anonymous 28 October 2017

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


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!

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


Gravatar

Anonymous 05 October 2017

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


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)

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

Logo

Samuel Venable (Publisher) 11 April 2018

Hi Rob Q.

I just published a special update that you and many others will enjoy! :)

Changes in 9.1.0
- Finally fixed that nasty bug on Windows with setting the wait argument to true.
- Added an optional third argument to allow opening files hidden on Windows.

Regards,
Samuel


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.

Logo

Samuel Venable (Publisher) 11 April 2018

Hi Rakin I!

This problem has been fixed, almost 2 years ago (somewhere around after the time of your review). Please consider updating your review. :)

Regards,
Samuel


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.

Logo

Samuel Venable (Publisher) 11 April 2018

Hi Przemek L!

This problem has been fixed, almost 2 years ago (somewhere around after the time of your review). Please consider updating your review. :)

Regards,
Samuel


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.

Logo

Samuel Venable (Publisher) 11 April 2018

This problem has been fixed, almost 2 years ago (somewhere around after the time of your review). Please consider updating your review. :)

Regards,
Samuel


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.

Logo

Samuel Venable (Publisher) 11 April 2018

Hi Stetson S!

This problem has been fixed, almost 2 years ago (somewhere around after the time of your review). Please consider updating your review. :)

Regards,
Samuel


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

Loading, please wait

What is the issue?

Back to Top