Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: MrSaLTy on April 22, 2005, 01:21:34 am
-
I would like to know if there is a way to run an external app after you quit a game and it returns to the menu in mamewah. I know you can run them before the game launches but would like to run one after the game is quit and it returns to the frontend. Can this be done and if so how. Thanks
-
I don't know with MameWah, but there is a chance it is the same thing that with my FrontEnd (AtomicFE).
you can create a .BAT , to run game. ex : create a .BAT called RunMame.BAT
in the .bat you code :
Cd \
cd mame
mame.exe %1 -skip_disclaimer -skip_gameinfo
Rem <here your application to run , exemple here the notepad>
Cd \
cd windows
Notepad.exe
And you say to mamewah to use RunMAME.bat to run mame game.
Youk
-
looks interesting, would there need to be a start/wait switch in the batch? How do you actually feed the rom name into mame though? I cant tell how the romname will get from maewah into the batch & then passed along to mame
Cd \
cd mame
start/wait mame.exe %1 -skip_disclaimer -skip_gameinfo
Rem <here your application to run , exemple here the notepad>
Cd \
cd windows
Notepad.exe
EDIT::
Nevermind. I see the %1 is a variable that can be set from the launch command
-
I do this all the time with mameWAH. Many of my emulators don't easily allow or even allow at all for saving the screenshot in PNG format in a specified directory. As a result, I call these emulators with a batch file that is responsible for finding the image, wherever the emulator drops it, converts it to PNG if necessary, fixes the filename if necessary, and moves it to the SNAP folder. With mamewah, I've only had trouble in the event that I am not using a specified extension (ala *), and have to work a little magic in the batch file to figure out the extension. Other than that, it's trivial and works great.
Chemame
-
I guess I was overthinking the process.... I shoulda figured that out. hehe
thanks for the replies.
-
Ok here is some info for anyone trying to run mame from a batchfile with mamewah.....
I was finding that after I changed it to a batch that it was running the game 2 times.
-
MAMEWAH executes MAME twice because you have the {autodosbox} flag in your commandline_format parameter. If you change this to {nodosbox} it will clear that issue right up (but MAMEWAH won't check the ROM before launching - if you care about that).
-sab
-
HA! well its doesnt explain that in the documentation very well.. at least from what I have seen... well it doesn't matter at this point because this works. ;D
-
gotta love batch files. I wish I was around when dos was the main. dos commands are extreamly useful even in a win32 environment