Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Can you run an external app in mamewah AFTER a game exits?  (Read 1486 times)

0 Members and 1 Guest are viewing this topic.

MrSaLTy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:November 01, 2024, 01:26:30 pm
  • nabisco reject
Can you run an external app in mamewah AFTER a game exits?
« 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

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: Can you run an external app in mamewah AFTER a game exits?
« Reply #1 on: April 22, 2005, 04:24:51 am »
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




vibez

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 411
  • Last login:February 09, 2011, 08:33:20 am
  • I want to build my own arcade controls!
Re: Can you run an external app in mamewah AFTER a game exits?
« Reply #2 on: April 22, 2005, 07:01:17 am »
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
« Last Edit: April 22, 2005, 07:18:46 am by vibez »

chemame

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 107
  • Last login:January 26, 2007, 01:54:05 pm
  • I want to build my own arcade controls!
Re: Can you run an external app in mamewah AFTER a game exits?
« Reply #3 on: April 22, 2005, 10:35:10 am »
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
« Last Edit: April 22, 2005, 03:29:41 pm by chemame »

MrSaLTy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:November 01, 2024, 01:26:30 pm
  • nabisco reject
Re: Can you run an external app in mamewah AFTER a game exits?
« Reply #4 on: April 22, 2005, 01:37:12 pm »
I guess I was overthinking the process.... I shoulda figured that out. hehe

thanks for the replies.

MrSaLTy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:November 01, 2024, 01:26:30 pm
  • nabisco reject
Re: Can you run an external app in mamewah AFTER a game exits?
« Reply #5 on: April 23, 2005, 03:27:28 pm »
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.

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: Can you run an external app in mamewah AFTER a game exits?
« Reply #6 on: April 23, 2005, 03:48:03 pm »
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

MrSaLTy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:November 01, 2024, 01:26:30 pm
  • nabisco reject
Re: Can you run an external app in mamewah AFTER a game exits?
« Reply #7 on: April 23, 2005, 03:52:34 pm »
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

vibez

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 411
  • Last login:February 09, 2011, 08:33:20 am
  • I want to build my own arcade controls!
Re: Can you run an external app in mamewah AFTER a game exits?
« Reply #8 on: April 23, 2005, 04:08:27 pm »
gotta love batch files. I wish I was around when dos was the main. dos commands are extreamly useful even in a win32 environment