Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: Afterburner1970 on June 27, 2022, 11:15:14 pm
-
Hi all,
I've got Model 2 and Mame games running from a AHK script, but for the life of me can't figure out how to run Super Model :banghead:
This is the script...(I don't know much about this stuff, all I can do is follow instructions, but I can understand what whats going on).
setworkingdir, C:\emulators\other_emus\supermodel
run supermodel daytona2 -res=1920,1080 -fullscreen -force-feedback
This works perfectly in Command Line (after adding .zip after the ROM name)
The error is "the system cannot find the file specified"
Hoping someone can help
-
The problem is that arguments to AHK's "run" command are delimited by commas, so when it sees that comma in your resolution argument, the run command thinks everything that follows is another argument for the run command itself, instead of treating the comma like just another character in the arguments to pass to supermodel. You can fix this by escaping the comma with a backtick character. Change that part of the command line to...
-res=1920`,1080
...and it will work.