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: CPWizard - sub display remains active after game exit  (Read 1627 times)

0 Members and 1 Guest are viewing this topic.

Ionos

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:July 19, 2012, 06:06:58 am
CPWizard - sub display remains active after game exit
« 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...

Ionos

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:July 19, 2012, 06:06:58 am
Re: CPWizard - sub display remains active after game exit
« Reply #1 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. :)