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: Mamewah shell shutdown  (Read 3575 times)

0 Members and 1 Guest are viewing this topic.

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Mamewah shell shutdown
« 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.
« Last Edit: April 28, 2008, 11:38:57 am by ScooterMAC »
Kick Ass!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah shell shutdown
« Reply #1 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?

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #2 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?
Kick Ass!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah shell shutdown
« Reply #3 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.

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #4 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.
« Last Edit: May 07, 2008, 10:01:28 am by ScooterMAC »
Kick Ass!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah shell shutdown
« Reply #5 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.

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #6 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.
Kick Ass!

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #7 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.
Kick Ass!

ablizno

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:August 15, 2011, 09:04:29 pm
  • [insert text here]
Re: Mamewah shell shutdown
« Reply #8 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.

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #9 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!
Kick Ass!

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #10 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.
Kick Ass!

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #11 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?
Kick Ass!

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Mamewah shell shutdown
« Reply #12 on: May 07, 2008, 10:50:39 pm »
Not sure if this will work or not, but try:

exit_app_commandlines                   start  explorer

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #13 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
Kick Ass!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah shell shutdown
« Reply #14 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.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah shell shutdown
« Reply #15 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.

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #16 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:
Kick Ass!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah shell shutdown
« Reply #17 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)

ScooterMAC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 43
  • Last login:April 15, 2012, 12:47:20 am
Re: Mamewah shell shutdown
« Reply #18 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.
Kick Ass!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah shell shutdown
« Reply #19 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).