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 down pc from inside gamelauncher  (Read 1438 times)

0 Members and 1 Guest are viewing this topic.

canardo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 65
  • Last login:January 01, 2008, 07:32:23 am
  • I'm a llama!
Shutting down pc from inside gamelauncher
« on: March 13, 2003, 06:47:43 am »
Shutting down pc from inside gamelauncher

would it be possible by placing a batch file to execute from inside the misc menu

and on other batch file route would it be possible to play a movie once windows loads then execute gamelauncher but

(PS I am useless with batch files lol)

jets

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 80
  • Last login:February 25, 2005, 06:40:39 pm
  • all your base are belong to us
Re:Shutting down pc from inside gamelauncher
« Reply #1 on: March 13, 2003, 07:40:54 am »
If your PC is a newer ATX you're in luck. You can use AutoIt to compile scripts into exe files. Paste this into a text file and change the extension to .aut. After that complie an exe:

RunWait,%A_SCRIPTDIR%glaunch.exe,%A_SCRIPTDIR%
Shutdown,8

Run the exe in the same dir as glaunch.exe and that way when you colse game launcher, it'll shutdown the PC. I dunno about the movie though.


Brax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1426
  • Last login:January 06, 2009, 09:03:48 am
  • Bring on the power tools!
Re:Shutting down pc from inside gamelauncher
« Reply #2 on: March 13, 2003, 03:26:04 pm »
I'm looking for something similar and that sounds like it would work fine but what if you want to use your computer for something else or modify some settings? How do you exit GL without rebooting then?
If you build a frankenpanel, chances are I don't care for you as a person.

rampy

  • *shrug*
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2910
  • Last login:March 02, 2007, 11:32:16 am
  • ...as useless as a JPG is to Helen Keller
    • Build Your Own PVR
Re:Shutting down pc from inside gamelauncher
« Reply #3 on: March 13, 2003, 03:57:56 pm »
I'm looking for something similar and that sounds like it would work fine but what if you want to use your computer for something else or modify some settings? How do you exit GL without rebooting then?

You'd hit "ESC" - cuz if you were gonna be modifying settings or surfing or whatever you'd have the keyboard handy... right? =P

(sorry couldn't help busting your stones a little)

rampy

Brax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1426
  • Last login:January 06, 2009, 09:03:48 am
  • Bring on the power tools!
Re:Shutting down pc from inside gamelauncher
« Reply #4 on: March 13, 2003, 05:18:50 pm »
I'm looking for something similar and that sounds like it would work fine but what if you want to use your computer for something else or modify some settings? How do you exit GL without rebooting then?

You'd hit "ESC" - cuz if you were gonna be modifying settings or surfing or whatever you'd have the keyboard handy... right? =P

(sorry couldn't help busting your stones a little)

rampy
Yeah, you'd hit ESC and if you applied the exe that was previously mentioned your computer would SHUT OFF. Lots of modifying could go on then couldn't it?
If you build a frankenpanel, chances are I don't care for you as a person.

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:April 28, 2025, 12:29:02 am
Re:Shutting down pc from inside gamelauncher
« Reply #5 on: March 13, 2003, 05:59:49 pm »
Well what you need is this:

http://www.budja.com/shutdown/shutdown.exe

It's a commandline based shutdown utility. So you can create a batch file to run it.  Since you are going to run this from within Game Launcher, you can give 'shutdown.exe' the option to force the shutdown of all running programs w/o saving data, which...should be fine for Game Launcher.  The only thing that I can think of that might go wrong is that the log files might get corrupted or something.

Justin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 551
  • Last login:March 29, 2025, 09:39:08 am
    • Centipede MAME cabinet
Re:Shutting down pc from inside gamelauncher
« Reply #6 on: March 13, 2003, 07:20:16 pm »
I wrote an IT script that instead of shutting down on exit, prompts with a dialog so you can choose if Shutdown, Exit, or Cancel.

I could post this.
"3 warps to Uranus" -- so I stopped playing!

rampy

  • *shrug*
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2910
  • Last login:March 02, 2007, 11:32:16 am
  • ...as useless as a JPG is to Helen Keller
    • Build Your Own PVR
Re:Shutting down pc from inside gamelauncher
« Reply #7 on: March 13, 2003, 08:10:09 pm »
I'm looking for something similar and that sounds like it would work fine but what if you want to use your computer for something else or modify some settings? How do you exit GL without rebooting then?

You'd hit "ESC" - cuz if you were gonna be modifying settings or surfing or whatever you'd have the keyboard handy... right? =P

(sorry couldn't help busting your stones a little)

rampy
Yeah, you'd hit ESC and if you applied the exe that was previously mentioned your computer would SHUT OFF. Lots of modifying could go on then couldn't it?


er.... of course.. doht! of course I would make it so you'd actually have to select "off" like an emulator... (I kinda have the reverse going on currently with glaunch:  I'm in DOS and I have a separate menu to launch a batch file that loads windows)

So therefor "ESC" would be exit glaunch and selecting "off" would start the shutdown exe.

*Shrug*

rampy

jets

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 80
  • Last login:February 25, 2005, 06:40:39 pm
  • all your base are belong to us
Re:Shutting down pc from inside gamelauncher
« Reply #8 on: March 13, 2003, 09:14:56 pm »
I set mine up like I described. In case I want to get into windows, I just tap the windows button and when I see the desktop I CNTRL+ALT+DEL Kill game launcher. Either that or WIN+L to logoff and logon as another user. Messy but it works. Who wants a menu to shutdown? I set it up so a total dumass could turn it on, play a game and shut it off.

PS: GL will hang if you just try to force a shutdown on it. Then you have to press enter to "End Now" and actually shutdown.