Moi j'ai bidouillé ça. Je sais plus exactement ce que j'ai modifié.
;*******************************Atomiswave demul 56*******************************
;Required - Settings.ini:
;
http://www.hyperspin-fe.com/forum/showp ... tcount=104
FadeInStart()
Hotkey, %exitEmulatorKey%, CloseProcess
;Blockinput on
Gui, Color, FFFFFF
Gui, -Caption +ToolWindow +AlwaysOnTop
xx := (A_ScreenWidth-650)/2
yy := (A_ScreenHeight-650)/2
Gui, 1:Add, Picture, x%xx% y%yy% w650 h650, neolegend.jpg
Gui, Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
IniRead, system, %emupath%settings.ini, %RomName%, System,
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
IniRead, LoadDecrypted, %emupath%settings.ini, %Romname%, LoadDecrypted
;\\\This section swaps out controls for different game types\\\
demul_controller_code = 16777216
demul_mouse_code = 131072
demul_keyboard_code = 1073741824
demul_lightgun_code = -2147483648
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard
IniRead, current_device, %emupath%demul.ini, PORTB, device, demul_controller_code
IniRead, current_controls, %emupath%padDemul.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(controls = "standard" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "sfstyle" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "ggxstyle" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%GGXSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "reverse" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%REVERSE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "driving" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%DRIVING_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "jambodriving" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%JAMBODRIVING_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "fps" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%FPS_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "samba" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SAMBA_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "lightgun" (current_device != demul_mouse_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_mouse_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "keyboard" (current_device != demul_keyboard_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_keyboard_code%, %emupath%demul.ini, PORTB, device
}
;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav
If (LoadDecrypted = "false")
{
Run, %emupath%%executable% -run=%system% -rom=%Romname%
sleep, %Screen_Timeout%
; send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winactivate, DEMUL
FadeInExit()
Process, WaitClose, %executable%
}
else if (LoadDecrypted = "true")
{
Run, %emupath%%executable% -run=%system% -rom=%Romname%
send, {Down 2}
send, {ENTER}
send, {shiftdown}{Tab}{Shiftup}
send, {Enter}
sleep, 2000
clipboard=
clipboard=%A_ScriptDir%\%romName%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
sleep, %Screen_Timeout%
; send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winwaitactive, DEMUL
FadeInExit()
Process, WaitClose, %executable%
}
FadeOutExit()
WinActivate, Hyperspin
ExitApp
CloseProcess:
FadeOutStart()
process, Close, %executable%
return
;***********************************Sega Naomi Makaron 12-5***********************************
FadeInStart()
Gui, Color, FFFFFF
Gui, -Caption +ToolWindow +AlwaysOnTop
xx := (A_ScreenWidth-650)/2
yy := (A_ScreenHeight-650)/2
Gui, 1:Add, Picture, x%xx% y%yy% w650 h650, neolegend.jpg
Gui, Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%
if (systemName = "NaomiMakaron" executable="naomi.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
WinHide ahk_class Shell_TrayWnd
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard, 0
IniRead, current_controls, %emupath%jvs.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(current_controls != controls controls = "sfstyle")
{
filecopy, %emupath%SFSTYLE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "ggxstyle")
{
filecopy, %emupath%GGXSTYLE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "reverse")
{
filecopy, %emupath%REVERSE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "standard")
{
filecopy, %emupath%STANDARD_JVS.ini, %emupath%JVS.ini, 1
}
sleep, 500
filecopy, %emupath%NVRAM\%RomName%_NAOMI_NVRAM.bin, %emupath%NAOMI_NVRAM.bin, 1
filecopy, %emupath%JVS\%RomName%_NAOMI_JVS.bin, %emupath%NAOMI_JVS.bin, 1
Run, "%emupath%%executable%" "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
sleep, %Screen_Timeout%
;Gui Destroy
FadeInExit()
Process, WaitClose, %executable%
WinActivate, HyperSpin
}
;***********************************Sega Naomi Makaron Vertical*******************************
else if (systemName = "NaomiVertical" executable="naomi.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard, 0
IniRead, current_controls, %emupath%jvs.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(current_controls != controls controls = "sfstyle")
{
filecopy, %emupath%SFSTYLE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "ggxstyle")
{
filecopy, %emupath%GGXSTYLE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "reverse")
{
filecopy, %emupath%REVERSE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "standard")
{
filecopy, %emupath%STANDARD_JVS.ini, %emupath%JVS.ini, 1
}
;**delete this section when makaron supports vertical rotation**
IniRead, IsStillVertical, %emupath%NAOMI.ini, Settings, fullscreen
If (IsStillVertical = "1")
{
IniWrite, 0, %emupath%NAOMI.ini, Settings, fullscreen
}
;**delete this section when makaron supports vertical rotation**
;Switching to 90°
Run, %emupath%display.exe /rotate:90
sleep, 100
hideDesktop()
sleep, 500
filecopy, %emupath%NVRAM\%RomName%_NAOMI_NVRAM.bin, %emupath%NAOMI_NVRAM.bin, 1
filecopy, %emupath%JVS\%RomName%_NAOMI_JVS.bin, %emupath%NAOMI_JVS.bin, 1
Run, "%emupath%%executable%" "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
FadeInExit()
Process, WaitClose, %executable%
;Switching back to 0°
Run, %emupath%display.exe /rotate:0
WinActivate, HyperSpin
}
;*************************************Sega Naomi Demul 0.5.6**************************
else if ((systemName = "Sega Naomi" or systemName = "Sega Naomi 2") executable = "demul.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
IniRead, system, %emupath%settings.ini, %RomName%, System,
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
IniRead, LoadDecrypted, %emupath%settings.ini, %Romname%, LoadDecrypted
;\\\This section swaps out controls for different game types\\\
demul_controller_code = 16777216
demul_mouse_code = 131072
demul_keyboard_code = 1073741824
demul_lightgun_code = -2147483648
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard
IniRead, current_device, %emupath%demul.ini, PORTB, device, demul_controller_code
IniRead, current_controls, %emupath%padDemul.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(controls = "standard" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "sfstyle" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "ggxstyle" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%GGXSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "reverse" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%REVERSE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "driving" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%DRIVING_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "jambodriving" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%JAMBODRIVING_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "wldrider" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%WLDRIDER_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "fps" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%FPS_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "samba" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SAMBA_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "lightgun" (current_device != demul_mouse_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_mouse_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "keyboard" (current_device != demul_keyboard_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_keyboard_code%, %emupath%demul.ini, PORTB, device
}
if (LoadDecrypted = "false")
{
Run, %emupath%%executable% -run=%system% -rom=%Romname%
sleep, %Screen_Timeout%
;send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winactivate, DEMUL
FadeInExit()
Process, WaitClose, %executable%
}
else if (LoadDecrypted = "true")
{
Run, %emupath%%executable% -run=%system% -rom=%Romname%
send, {Down 2}
send, {ENTER}
send, {shiftdown}{Tab}{Shiftup}
send, {Enter}
sleep, 2000
clipboard=
clipboard=%A_ScriptDir%\%romName%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
sleep, %Screen_Timeout%
;send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winwaitactive, DEMUL
FadeInExit()
Process, WaitClose, %executable%
}
}
FadeOutExit()
WinActivate, Hyperspin
ExitApp
CloseProcess:
FadeOutStart()
process, Close, %executable%
return