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: Shutting pc down when exiting program  (Read 1219 times)

0 Members and 1 Guest are viewing this topic.

MAME TIME

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 175
  • Last login:March 23, 2019, 10:23:19 pm
Shutting pc down when exiting program
« 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,
Too Much Game, check out my ish!!!

Geometry Arcade



Neo Geo 360


MK2 standup



SF2 champ edition X2


BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9273
  • Last login:August 19, 2025, 03:10:32 pm
  • ...
Re: Shutting pc down when exiting program
« Reply #1 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

Can be triggered by http://www.autohotkey.com/docs/commands/_IfWinActive.htm

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: Shutting pc down when exiting program
« Reply #2 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?
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

MAME TIME

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 175
  • Last login:March 23, 2019, 10:23:19 pm
Re: Shutting pc down when exiting program
« Reply #3 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.
Too Much Game, check out my ish!!!

Geometry Arcade



Neo Geo 360


MK2 standup



SF2 champ edition X2


EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: Shutting pc down when exiting program
« Reply #4 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.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5165
  • Last login:August 23, 2025, 09:14:19 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Shutting pc down when exiting program
« Reply #5 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

Image:
« Last Edit: June 06, 2013, 11:42:24 am by DaOld Man »