5
« on: April 16, 2020, 08:18:49 PM »
try this
change the folder path for your use
; SET IMAGE IN OVERLAY
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
; RECEIVES IMAGE AND SCREEN SIZE DATA
Gui, Add, Picture, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%, D:\ARCADE\CONFIG\LOADING.jpg
; SHOW IMAGE IN MONITOR SCREEN SIZE
Gui, Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%
; WAIT 1 SECOND
Sleep 1000
; OPEN EMULATOR + ROM
SetWorkingDir D:\ARCADE\EMULATOR\NAOMI\
Run demul.exe -run=naomi -rom=mvsc2u
; WAIT 9 SECONDS
Sleep 9000
; SET FULL SCREEN EMULATOR
WinActivate, ahk_exe demul.exe
Send !{ENTER}
; CLOSE SPLASH
Gui, Cancel
; "ESC" CLOSE EMULATOR
~ESC::
Process, Close, demul.exe
ExitScript:
ExitApp
save as game.ahk
and compile