Main > Main Forum

Quit MAME = quit windows

Pages: << < (2/2)

maraxle:

There's probably some program out there that can watch the running processes on your machine and make sure mame32.exe (or whatever it's called) is running.  If it's not running, execute a shutdown command.  I don't know of a specific program that will do this, but your friend Google can probably help.

maraxle:

Better yet, just find a program that will shutdown the system.  I had one called shutdown.exe before.  Then, make a batch file that you launch instead of launching mame32.exe.  The batch file would contain:

mame32.exe
shutdown.exe

Once you close mame32, it'll run the next line in the batch file.

Witchboard:

You can try a registry edit, but I wouldn't unless you have the computer networked so you can change it back if you need to.  I'm thinking you can change your shell program from explorer to whatever emu you want.  When you exit the emu, windows shuts down.  We used to mess with people at work all the time by replacing their shell with minesweeper.  They would log on, minesweeper would open, they would be like, "WTF?", close minesweeper, windows would shut down.

I'll see if I can find the correct registry key tonight.  Which version of Windows are you using?

rsoandrew:

I was planning on using windows to shut down Mame without quiting it. It should force quit without user input just fine.

I am going to put a shutdown and reset button someplace out of reach probably on the upper side of the cabinet and use my ipac to setup a custom key combination that will invoke the windows shutdown command when I press the key. The reset button will go to the motherboard. I'm also planning on replacing my startup screen.

Here are some links for what I'm planning.
Download a new Mame XP startup screen
and program to install it.
Change Shutdown screens (modify the startup bmp)
Win XP shutdown command line switches
The link above explains how to create a shortcut and then program the hot keys. My plan is to setup a button in the ipac to generate the shutdown shortcut hotkey combo.

Of course if my cabinet would ever come :-[, I'd let you know if this actually works.

gyruss:

A pgm called HotExit can be used in a batch file to shutdown.
Or you can use AutoIT to shutdown when mame32 is no longer active. Both pgms are free. I use AutoIT to shutdown the Visual Pinball editor after you exit from playing a pinball game.

Pages: << < (2/2)

Go to full version