Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: shateredsoul on September 03, 2010, 04:23:45 pm
-
I'm using the following code to launch cpwizard and the control panel layout (the image with all the buttons labeled)
My issue is that when I launch a game, it shows the controls then it returns back to hyperspin then launches mame. Is there a way to have it launch the mame game without coming back to the hyperspin wheel?
I asked this question here too, but non one really responded, probably because I thought I had fixed the issue but not really. I was hoping some experts here might know whether the issue was cpwizard or my script. The person that posted the solution to this seemed to not have this issue.
http://www.hyperspin-fe.com/forum/showthread.php?p=85812#post85812 (http://"http://www.hyperspin-fe.com/forum/showthread.php?p=85812#post85812")
else if (systemName = "MAME" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "I:\Program Files (x86)\CPWizard\CPWizard.exe" -emu "%systemName%" -game "%romName%" -timeout 9000
Runwait, %executable% %romName%, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, %executable%
WinActivate, HyperSpin
exitapp
}
}
-
I have HyperSpin on my cab and just recently began to tinker with CPWizard. I have the same exact problem. HyperSpin launches, I select a game, the CPWizard shows the control panel layout, then it goes back to the HyperSpin wheel for about 2 - 3 seconds then the game launches. I originally thought it wasn't working at all. When I saw the HyperSpin wheel I kept exiting thinking I had set it up wrong. After checking and rechecking my script I launched a game and after it came back to the wheel I left it alone. That's when I saw it actually launch the game.
I don't like the way it cycles back before launching the game. I am not sure if this is the only way to get it to work or if there is a fix. I created a post on the HyperSpin-fe forums, but have not received any replies.
Please post if you figure it out.
Thanks
-
this worked for me, chillinwater at the hyperspin forum provided it, just make sure the directory matches where you have cpwizard.exe
else if (systemName = "MAME" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, "I:\Program Files (x86)\CPWizard\CPWizard.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
}