Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: MAME TIME on June 05, 2013, 09:48:39 am

Title: Shutting pc down when exiting program
Post by: MAME TIME on June 05, 2013, 09:48:39 am
Hey

just wondering how I can get the pc to shutdown when exiting a game? did a search and came up with nothing. im not using any frontends,
Title: Re: Shutting pc down when exiting program
Post by: BadMouth on June 05, 2013, 10:42:15 am
Autohotkey cures all, but it's up to you to learn how to use it.
http://www.autohotkey.com/docs/commands/Shutdown.htm (http://www.autohotkey.com/docs/commands/Shutdown.htm)

Can be triggered by http://www.autohotkey.com/docs/commands/_IfWinActive.htm (http://www.autohotkey.com/docs/commands/_IfWinActive.htm)
Title: Re: Shutting pc down when exiting program
Post by: severdhed on June 05, 2013, 10:42:49 am
a little more info might be nice.  What exactly are you trying to accomplish?  are you talking about a game running in Mame?  or a pc game?  If mame and no front end, how are you launching the game?
Title: Re: Shutting pc down when exiting program
Post by: MAME TIME on June 05, 2013, 08:57:23 pm
im launching geometry wars, and once I exit out I wanted the pc to shutdown, im using 2 joysticks and 2 buttons-enter and escape.
Title: Re: Shutting pc down when exiting program
Post by: EMDB on June 06, 2013, 03:03:56 am
You could create a simple batch file which launches the game and afterwards shuts down:

c:\game\geometry.exe
shutdown /s

To start the game use the batch file instead of calling the game executable directly.
Title: Re: Shutting pc down when exiting program
Post by: DaOld Man on June 06, 2013, 11:40:39 am
Would my program, "The Launcher" do what you want?

http://files.arcadecontrols.com/details.php?image_id=3565 (http://files.arcadecontrols.com/details.php?image_id=3565)

Image: