Guest MadBob Posted February 21, 2005 Share Posted February 21, 2005 I have an Arcade Cab running Windows 98-SE and the frontend I have is called AdvanceMENU now I want it to shut Windows down when I exit the software and thought this script would work. ;Check to see if AdvanceMENU is already open If WinExists("AdvanceMENU") Then MsgBox(0, "", "AdvanceMENU Already Running") Exit EndIf ;If AdvanceMENU window not already open Run advmenu Run("advmenu.exe") ; Wait for the AdvanceMENU to become active before continuing WinWait("AdvanceMENU") ; Wait for the AdvanceMENU window to close before continuing WinWaitClose("AdvanceMENU") ;close windows down Shutdown(9) It does work on initial testing however as soon as I tried to actually use the Cab and ran one of the games (it uses MAME Windows Command line to play the games full screen) it shut windows down even though the AdvanceMENU window is still open. Anyone suggest a way to get around this? here is the Window info Press CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: AdvanceMENU Class: SDL_app Size: X: 110 Y: 110 W: 806 H: 625 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Client: X: 561 Y: 348 Cursor ID: 5 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xD6D3CE Dec: 14078926 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: Control ID: ClassNameNN: Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 22, 2005 Share Posted February 22, 2005 I have an Arcade Cab running Windows 98-SE and the frontend I have is called AdvanceMENU now I want it to shut Windows down when I exit the software and thought this script would work.;Check to see if AdvanceMENU is already open If WinExists("AdvanceMENU") Then MsgBox(0, "", "AdvanceMENU Already Running") Exit EndIf ;If AdvanceMENU window not already open Run advmenu Run("advmenu.exe") ; Wait for the AdvanceMENU to become active before continuing WinWait("AdvanceMENU") ; Wait for the AdvanceMENU window to close before continuing WinWaitClose("AdvanceMENU") ;close windows down Shutdown(9)It does work on initial testing however as soon as I tried to actually use the Cab and ran one of the games (it uses MAME Windows Command line to play the games full screen) it shut windows down even though the AdvanceMENU window is still open.Anyone suggest a way to get around this?here is the Window infoPress CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: AdvanceMENU Class: SDL_app Size: X: 110 Y: 110 W: 806 H: 625 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Client: X: 561 Y: 348 Cursor ID: 5 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xD6D3CE Dec: 14078926 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: Control ID: ClassNameNN: Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< >>>>>>>>>>> Hidden Window Text <<<<<<<<<<<<{POST_SNAPBACK}>AdvanceMENU is the frontend, right? Have you tried MAME32? That's a little easier to work with, IMO. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now