The NEW Build Your Own Arcade Controls
Main => Software Forum => Topic started by: canardo 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)
-
If your PC is a newer ATX you're in luck. You can use AutoIt (http://http://www.hiddensoft.com/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.
-
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?
-
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
-
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?
-
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.
-
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.
-
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
-
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.