Integrating CPwizard into Hyperspin

shateredsoul September 4, 2010 0

I recently had considered buying a 2nd 7″ monitor for my arcade cabinet.  I decided to not get one due to the money cost.  So far I’ve spent about 250 on materials for my arcade cabinet + 150 for the monitor + the pc  and speakers which was a gift (a 500 dollar computer would probably run mostly everything I can, except ps2, wii and gamecube).  Anyways, I didn’t want to spend an extra 120 for an LCD monitor, because I really should be saving for other things.

Luckily, I recently found out how to have cp wizard display the control panel with labeled buttons. The script belwo has the control panel displayed for a few seconds right before launching the game (thanks to chillingwater for helping refine this code).  the cpwizard directory to match the location of your cpwizard.exe

else if (systemName = "MAME" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, "I:Program Files (x86)CPWizardCPWizard.exe" -emu "%systemName%" -game "%romName%" -timeout 9000
sleep, 8000
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%,
Runwait, %executable% %romName%, %EmuPath%, Hide UseErrorLevel
sleep,1000
gui destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
exitapp
}
else if (systemName = "MAME" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, "I:Program Files (x86)CPWizardCPWizard.exe" -emu "%systemName%" -game "%romName%" -timeout 9000
sleep, 8000
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%,
Runwait, %executable% %romName%, %EmuPath%, Hide UseErrorLevel
sleep,1000
gui destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
exitapp
}

Leave A Response »