Jump to content
Sign in to follow this  
Guest MadBob

Help with AI v3

Recommended Posts

Guest MadBob

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 <<<<<<<<<<<

Share this post


Link to post
Share on other sites

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 <<<<<<<<<<<

<{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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...