Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: ScooterMAC on April 28, 2008, 11:32:39 am

Title: Mamewah shell shutdown
Post by: ScooterMAC on April 28, 2008, 11:32:39 am
I am running mamewah 1.62 shelled in xp home. I have set the exit_and_run_app_commandlines to c:\windows\explorer.exe (explorer.exe wouldn't work for me) and exit_action to choice. It works great when I need to go into windows. The problem I am having is when I select reboot or shutdown in the option screen its loads to windows desktop and does nothing. I have searched around the forum and couldn't find anything about this. I sure it can be done, I just don't know how. Thanks.
Title: Re: Mamewah shell shutdown
Post by: Minwah on April 30, 2008, 01:21:37 pm
Perhaps running Mamewah as shell causes some problem with shutting down....but then again I am pretty sure other people do this successfully.  Can anyone confirm?
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 06, 2008, 05:27:29 pm
Perhaps running Mamewah as shell causes some problem with shutting down....but then again I am pretty sure other people do this successfully.  Can anyone confirm?

Any suggestions MINWAH?
Title: Re: Mamewah shell shutdown
Post by: Minwah on May 07, 2008, 06:15:13 am
Any suggestions MINWAH?

Try running Mamewah normally (not as your shell), and see if the same thing happens. At least that will tell you if shelling Mamewah is causing this issue.
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 07, 2008, 09:49:30 am
Any suggestions MINWAH?

Try running Mamewah normally (not as your shell), and see if the same thing happens. At least that will tell you if shelling Mamewah is causing this issue.

Mamewah works fine when not shelled. I think its the exit and run application command.  Is there any way to map each choice to a specific option?

MAMEWAH (in game) Options:
Exit to windows | c:\windows\explorer.exe

Restart | c:\windows\shutdown -r -t 0 or c:\Windows\RUNDLL.EXE user.exe,exitwindowsexecexit

Shutdown | c:\windows\shutdown -f -t 0 or c:\Windows\RUNDLL32.EXE user,exitwindowsexit

I havent tried any of them yet, so the commands may not work. Just trying to see if it's possible.
Thanks.
Title: Re: Mamewah shell shutdown
Post by: Minwah on May 07, 2008, 11:21:21 am
Is there any way to map each choice to a specific option?

Not exactly, but you probably could run those commandlines as an application if you really wanted to using the 'general_app_commandlines' setting.

It would be good to know if anyone else has this problem, I don't recall anyone else mentioning this.
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 07, 2008, 03:13:02 pm

[/quote]
It would be good to know if anyone else has this problem, I don't recall anyone else mentioning this.
[/quote]

I think most people have their computer power switch on the front. I have mine computer plugged into a power strip and the stip is wired to a toggle switch that is on the side. I'm just worried about crashing my computer with the hard powerdowns.
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 07, 2008, 03:13:56 pm

It would be good to know if anyone else has this problem, I don't recall anyone else mentioning this.

I think most people have their computer power switch on the front. I have mine computer plugged into a power strip and the stip is wired to a toggle switch that is on the side. I'm just worried about crashing my computer with the hard powerdowns.
Title: Re: Mamewah shell shutdown
Post by: ablizno on May 07, 2008, 04:20:56 pm
when u hit player 2 button there should be an option to quit and shutdown. It works for me. Also can u post a picture of how u wired your power strip to a toggle switch because i am looking to do the same thing but can not figure out how to do so.
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 07, 2008, 07:33:35 pm
when u hit player 2 button there should be an option to quit and shutdown. It works for me. Also can u post a picture of how u wired your power strip to a toggle switch because i am looking to do the same thing but can not figure out how to do so.

Not sure how your setup is, but every one is different. Mine is escape. I had a hour to kill at work so I made this crappy drawing of how it goes together. This is a very basic setup so you should have no problem. I used a heavy duty 20a toggle switch and a 15a power strip. Everything is off the surge protector and if there is a surge it will just shut off not damaging anything. Always use a multimeter and check your connections! If you need help just let me know. I will post a pic when I get home. MS Paint (NT) rules!
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 07, 2008, 08:56:41 pm
I made this panel out of stainless steel and mounted it on the side of my cp. It's the main power and volume control.
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 07, 2008, 10:28:23 pm
Is there any way to map each choice to a specific option?

Not exactly, but you probably could run those commandlines as an application if you really wanted to using the 'general_app_commandlines' setting.


OK, I've narrowed it down (I think) to :
### External Application Settings ###
startup_app_commandlines                 
exit_app_commandlines                     explorer.exe
exit_and_run_app_commandlines             

Before I had c:\windows\explorer.exe and I changed it explorer.exe. It worked!But....when I exit to windows it doesn't bring up explorer. Only a blank screen, in which I have to ctr+alt+del - run - c:\windows\explorer.exe. Any sugestions?
Title: Re: Mamewah shell shutdown
Post by: DaOld Man on May 07, 2008, 10:50:39 pm
Not sure if this will work or not, but try:

exit_app_commandlines                   start  explorer
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 08, 2008, 12:21:24 am
Not sure if this will work or not, but try:

exit_app_commandlines                   start  explorer

I tried that but no luck yet. Here is my ini file:

### mamewah.ini (mamewah v1.62) ###

### (Global) Screen-Saver Settings ###
delay                                     60000
slide_duration                            2

### Audio Settings ###
enable_sounds                             1
sound_volume                              80
music_path                                c:\music
enable_music                              1
music_volume                              100

### Movie Settings ###
intro_movie_file                          c:\intro
exit_movie_file                           
keep_movie_preview_aspect                 no
delay_before_movie_preview                2
music_movie_mix                           mute_movies
movie_volume                              90

### Misc Settings ###
emulator_root_path                       
auto_setup_emulators                      0
theme                                     (Default Layout)
wrap_list                                 1
remember_current_game                     1
keep_image_aspect                         1
refresh_images                            1
delay_before_history_dat                  2
safe_mode                                 0
show_cursor                               0
keyboard_led_states                       -,-,-
lcd_com_port                              1
lcd_settings                             
exit_action                               choice
maxlogsize                                100000

### External Application Settings ###
startup_app_commandlines                 
exit_app_commandlines                     
exit_and_run_app_commandlines             

### Settings used by MAMEWAH ###
current_group                             
current_emulator                          mame
locked                                    0
Title: Re: Mamewah shell shutdown
Post by: Minwah on May 08, 2008, 04:32:03 am
I will have a play around with this today and see what I can come up with.
Title: Re: Mamewah shell shutdown
Post by: Minwah on May 08, 2008, 09:23:33 am
Try this:

exit_app_commandlines             c:\windows\explorer.exe{nowait}

Mamewah expects full paths, so definately leave the 'c:\windows\' part in.  The {nowait} part will quit Mamewah as soon as explorer is launched.

exit_and_run_app_commandlines could be used to run a commandline to shutdown the PC, but remember you would have to exit Mamewah in the correct way (either Exit & Run Application from the Exit menu, or set 'exit_action run_app' in mamewah.ini, or setup a suitable shortcut in mamewah.cfg.
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 08, 2008, 11:00:17 pm
IT WORKED!!!!!!!!!!!!!!!!!Thank You very much Minwah! I'm just wondering why the {nowait} had a big effect. I did notice that if it was not there, windows had mamewah still running under task manager. Well whatever, it's fixed and your the man! :cheers:
Title: Re: Mamewah shell shutdown
Post by: Minwah on May 12, 2008, 05:09:01 am
IT WORKED!!!!!!!!!!!!!!!!!Thank You very much Minwah! I'm just wondering why the {nowait} had a big effect. I did notice that if it was not there, windows had mamewah still running under task manager. Well whatever, it's fixed and your the man! :cheers:

If {nowait} is not present then Mamewah will wait for the app to finish (ie as you saw, Mamewah will still be running).

Glad it worked!!  8)
Title: Re: Mamewah shell shutdown
Post by: ScooterMAC on May 12, 2008, 09:06:20 pm
One more question minwah....is there a {wait} command? I have a intro video but I would like it to delay a couple of seconds to let the apps in the backround load up (nvida). Thanks.
Title: Re: Mamewah shell shutdown
Post by: Minwah on May 13, 2008, 06:39:22 am
One more question minwah....is there a {wait} command?

Yes, but it is default if {nowait} is not specified. It makes Mamewah wait for the app to finish execution.


Quote
I have a intro video but I would like it to delay a couple of seconds to let the apps in the backround load up (nvida). Thanks.

If you are running the nvidia app from Mamewah (using startup_app_commandlines), then it should wait for it anyway (assuming {nowait} is not specified).