OK, I took a look at this, and I came up with something that works great for me! Hopefully it works for you too.
I'll try to spell this out as best I can as I know this stuff is tough when you're first learning it.
1) If you don't have it already, download and install autohotkey.
2) Open up Paint, go to Image, then Attributes, and set the width and height to your screen resolution.
3) Use the fill with color tool to make a solid black image. Save it to your desktop as blackimage.bmp
4) Right click on your desktop, go to new, and then select Autohotkey Script, or just rename a new txt file with the ahk extension. Name it m2.ahk
5) Copy the following into that file, close and save it. From here on out, I will put stuff that you may need to change in red, and explain it below.
splashimage, blackimage.bmp, B
setworkingdir, C:\emus\otheremus\model2
run emulator vf2
WinWaitActive, Model
WinWaitNotActive, Model
sleep 500
splashimage, off
esc::
send !{F4}
exitapp
Change C:\emus\otheremus\model2 to the directory of the m2 emulator
If you don't have the vf2 rom, change this to the name of a rom you do have
If you don't use escape as your exit button, change this to what you do use. (You may need to consult the help file with autohotkey to find out the exact key name you need).
6) Right click your taskbar, go to properties, then uncheck keep the taskbar on top of other windows.
7) Double click m2.ahk. The screen should go black, and then seamlessly right into the game!
Press esc (or whatever your exit key is) and both the emu and script should exit and you'll be back at your desktop.
If this worked for you, continue with step 8 to integrate this into Mala. If it didn't work like it should, post here and we'll troubleshoot before you try to set it up with Mala.
8 ) Make a new m2.ahk script with the following (it's almost like our test one) and place it wherever you like along with your blackimage.bmp.
splashimage, C:\emus\blackimage.bmp, B
setworkingdir, C:\emus\otheremus\model2
run emulator %1%
WinWaitActive, Model
WinWaitNotActive, Model
sleep 500
splashimage, off
esc::
send !{F4}
exitapp
Change C:\emus\ to the path where you have blackimage.bmp (Normally you should not have to specify the path for blackimage.bmp when it's in the same directory as the script, but oddly I found I had problems using this with Mala when I didn't do that.)
Change C:\emus\otheremus\model2 to the directory where your model 2 emu is located.
9) Make a file called mame.cmd and place it in your mame folder. Put the following in it:
if "%2" == "C:\emus\otheremus\model2\roms" goto model2
mame %1
exit
:model2
cd C:\Program Files\Autohotkey
autohotkey.exe C:\emus\m2.ahk %1
exit
Change C:\emus\otheremus\model2\roms to wherever you keep your model2 roms
Change C:\Program Files\Autohotkey to the directory of your autohotkey installation (it's probably the same though)
Change C:\emus\ to the directory containing your m2.ahk script.
10) Point Mala to mame.cmd instead of mame.exe
Set 2 rom paths. Point the first one to your mame roms, point the second to your otheremus directory.
Make sure Search in subfolders is checked.
Change the command line to %rom% %path%
*See attached pics for clarity.*
11) Refresh your game list.
Now when you choose a model 2 game, the screen should turn black until the game starts. You may need to keep your taskbar set to not be on top of other windows. When you choose a mame game, it should run as normal.
Let me know if this works for you!
