What's new

med4cab

Beginner
Joined
May 17, 2021
Messages
26
Reaction score
12
Location
Italy
Hello guys,
I read a lot of thing in various trhead and I finally reached to let the Attract mode working on my TTX2.

I just have an issue to let JVS controls off my cabinet working whit games when I launch them whit MAME.
I wrote a script from the one Niko shared and when I launch MAME from his front end controls work perfectly, but when I launch (MAME) game from attract mode (configured startign from artfate one) seems like the jvs script is not working.

This is the script I made with AutoIt:

Global $FE = ProcessExists("attract.exe")
Global $FE2 = ProcessExists("jvsexe.exe")
run ("@echo on")
If $FE Then ProcessClose("attract.exe")
If $FE2 Then ProcessClose("jvsexe.exe")
sleep(100)
FileChangeDir (@ScriptDir)
Sleep(500)
run ("cjvs.exe", @ScriptDir)
Sleep(500)
;MsgBox(0, "command", "mame237b.exe -inipath " & @ScriptDir & "\ini " & $CmdLine[1])
;Exit
run ("mame237b.exe -inipath " & @ScriptDir & "\ini " & $CmdLine[1], @ScriptDir)
ProcessWaitClose ("mame237b.exe")
Sleep(500)
ProcessClose ("cjvs.exe")
Sleep(500)
If $FE Then
FileChangeDir ("E:\Frontend\Game")
Run("E:\Frontend\Game\game.exe")
EndIf
Sleep(10000)
Exit

Any help?
Thank you.
 
Last edited:
Back
Top