Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Ionos on January 09, 2012, 08:44:45 am

Title: CPWizard - sub display remains active after game exit
Post by: Ionos on January 09, 2012, 08:44:45 am
Hi,

I wonder if anyone has a solution to this. I've been playing with CPwizard with the view to install a second 7" USB display in my CP to show game controls, art and so on. I've set it up and all is working great except for 1 little issue - when I exit a game in MAME, the second display continues to cycle through the previous game rather then returning to my desktop image.

Is there any way to get it to not do this, and return to desktop on game exit?

Many thanks...
Title: Re: CPWizard - sub display remains active after game exit
Post by: Ionos on January 10, 2012, 06:40:19 am
Necessity is the mother of all invention!

Figured out a fairly simple solution if anyone encouters this same issue. Since I'm using Hyperspin as my FE, I simply added a kill command to the preview window with the following updated script (addition in bold).

Quote
else if (systemName = "MAME" && executable = "mame.exe")
{
    hideDesktop()
    ;Hotkey, %exitEmulatorKey%, CloseMame
    Runwait, %executable% %romName%, %EmuPath%, Hide UseErrorLevel
    Process, waitClose, %executable%
    WinClose, Preview    
    exitapp
  }

Solves the problem neatly and easily, and only kills the sub window not CPWizard itself. :)