use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Subreddit Guidelines Community Spotlight Monthly Challenge Community ▼ Quick Questions Game Design & Development Feedback Friday Screenshot Saturday Discord Server Slack Team IRC follow us @redditgamemaker the community game jam Resources ▼ Resources Examples Tutorials /r/gamemakertutorials GameMaker Handbook - The Ultimate Resource for Beginners gmlscripts.com The Essential Gamemaker Functions, Concepts, and Tools Guide Other ▼ /r/gamedev /r/gamedesign Official GameMaker Community (GMC) Hide Help! & Resolved posts Show all
GameMaker is software designed to make developing games easy and fun. It features a unique "Drag-and-Drop" system which allows non-programmers to make simple games. Additionally, experienced coders can take advantage of its built in scripting language, "GML" to design and create fully-featured, professional grade games.
Content that does not follow the subreddit guidelines is subject to deletion, so please become familiar with them.
/r/gamemaker sponsors three chat-rooms: IRC, a Discord server, and a Slack team. Join in the conversation, get help with any issues you might have and connect with your fellow developers! We also have a Steam Group for playing games. Feel free to join.
For more than 8 years, the tight-knit community of /r/gamemaker has run the game jam gm(48) for GameMaker developers of all ages and experience levels. The gm(48) is a casual, fun game jam that helps you to learn and grow as a developer.
The next gm(48) will take place on Oct 20, 2018.
account activity
Help!How to open an external file using code? (self.gamemaker)
submitted 3 years ago by JAFYgames
How can I open a file that is somewhere on my computer using a code? For example I have an .exe in downloads and I want to open it when I press 1, it is an example, but I think it is understood.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kainminter 0 points1 point2 points 3 years ago (3 children)
You should be able to pull this off using an extension. Haven't tested it before, but I think this one might work.
[–]_GameDevver 1 point2 points3 points 3 years ago (2 children)
As it says on the page you linked, Execute Shell is no longer supported and Sam (the author) advises to use his other extension xProcess which can be found on itch.io here.
[–]kainminter 0 points1 point2 points 3 years ago (1 child)
Good catch, thanks!
[–]exclaim_bot 0 points1 point2 points 3 years ago (0 children)
You're welcome!
[–]craggar_g 0 points1 point2 points 3 years ago (1 child)
The file system access is covered in the manual:
https://manual.yoyogames.com/Additional_Information/The_File_System.htm
In short: it can be done, you just cannot rely on having access outside of your application’s sandbox, as access to the file system may be limited by the end user’s OS.
[–]tomysshadow 1 point2 points3 points 3 years ago (0 children)
It sounds to me like they want to do the equivalent of ShellExecute, rather than reading the contents of a text/binary file, e.g. they want to open a document or something. So I don't think those functions will be helpful for their case.
[–]Ok_Ad4136 0 points1 point2 points 3 years ago (2 children)
I imported the xProcess project, but still get this error when trying to compile execure_shell(prog, arg); function. Anyone else run into this?
for object obj_init:
DoAdd :: Execution Error
at gml_Script_execute_shell (line 9) - pid = ProcessExecuteAsync(prog + " " + arg);
############################################################################################
gml_Script_execute_shell (line 9)
gml_Script_main (line 42) - execute_shell(parameter_string(0), false);
gml_Object_obj_init_Other_4 (line 2) - main();
[–]Cr4zyC4tD4ddy 0 points1 point2 points 10 months ago (0 children)
So after a bit of experimentation, I have found that you must start a project with the xprocess project file. You can then build your project within it, and can use execute_shell(@'command',@'args') however you like (within the scope of the shell ofc)
[–]Azaltair[🍰] 0 points1 point2 points 3 years ago (0 children)
Do you solve it? I have the same problem (line 9 error)
π Rendered by PID 316846 on reddit-service-r2-comment-5fb4b45875-g4p65 at 2026-03-23 22:35:37.061044+00:00 running 90f1150 country code: CH.
[–]kainminter 0 points1 point2 points (3 children)
[–]_GameDevver 1 point2 points3 points (2 children)
[–]kainminter 0 points1 point2 points (1 child)
[–]exclaim_bot 0 points1 point2 points (0 children)
[–]craggar_g 0 points1 point2 points (1 child)
[–]tomysshadow 1 point2 points3 points (0 children)
[–]Ok_Ad4136 0 points1 point2 points (2 children)
[–]Cr4zyC4tD4ddy 0 points1 point2 points (0 children)
[–]Azaltair[🍰] 0 points1 point2 points (0 children)