Ya man Ill post the code. Id also like to say this is old and I now perfer MAKARON as it emulates more games, better.
Anyways MVSC2 is a blast and it works with 2 players.
Here is the code.
#NoEnv
#SingleInstance force
#Persistent
#NoTrayIcon
;CHECKING FOR 1 PARAMS, IF NOT THEN EXIT
if 0 < 1
{
MsgBox Usage: Naomi_Loader.exe "[rompath]\[romfile]"
ExitApp
}
Run, joytokey.exe
Blockinput on ; Keeps users from messing up loader my pressing buttons and moving mouse
rom = "%1%" ; error level (rompath romfile) gives friendly name as ROM
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow ; No title, No taskbar icon
Gui Color, 0 ; Color Black
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;WinSet Transparent, 200, A ; Can be semi-transparent
MouseGetPos X, Y ; Remember pos to return
MouseMove %A_ScreenWidth%,%A_ScreenHeight% ; Move pointer off screen
IniWrite, 1, nulldc.cfg, nullDC, Emulator.AutoStart
IniWrite, 1, nulldc.cfg, nullDC, Emulator.NoConsole
IniWrite, 1, nulldc.cfg, drkpvr, Fullscreen.Enabled
IniWrite, 640, nulldc.cfg, drkpvr, Fullscreen.Res_X
IniWrite, 480, nulldc.cfg, drkpvr, Fullscreen.Res_Y
Run, nullDC-Naomi_1.0.3_nommu.exe ; launches emulator
WinWait, Open, Open as &read-only
IfWinNotActive, Open, Open as &read-only, WinActivate, Open, Open as &read-only
WinWaitActive, Open, Open as &read-only ; waits for load dialog
Sleep, 100
SendInput,%rom% ; sends rompath romfile from exe syntax
Send, {enter} ; loads roms by pressing enter
Sleep, 7000 ; Gives time for loading to finish before unhiding desktop
Gui Destroy ; Remove blinds from desktop
Blockinput off ; Allows user to send inputs so games can be played
Process, WaitClose, nullDC-Naomi_1.0.3_nommu.exe
MouseMove %X%, %Y% ; Restore mouse
return
ESC::
Run, Taskkill /F /IM joytokey.exe /T
Run, Taskkill /F /IM nullDC-Naomi_1.0.3_nommu.exe /T
ExitAPP
Note that it waits for specifc window titles and writes to the NullDc.cfg, Which I believe has changed between builds.
Hope this helps