pour project64, j'en ai un en stock,, mais c'est pour la version 1.6.1
Spoiler: ;----------------------------------------------------------------------------
; Nintendo 64
; Project64 v1.6.1
; by djvj
; 1.5
;
; Notes:
; Make sure you apply the 1.6.1 patch found here:
http://www.jabosoft.com/index.php?articleid=114
; It applies many of the v1.7 updates but keeps the stability of the v1.6 emu
; CLI loading doesn't work, script opens roms manually
; Run the emu manually and hit Ctrl+T to enter Settings. On the Options tab, check "On loading a ROM, go to full screen"
; If roms don't start automatically, enabled advanced settings, reopen Settings window, go to the Advanced tab and check "Start Emulation when rom is opened?"
; I like to turn off the Rom Browser by going to Settings-Rom Selection and uncheck "Use Rom Browser" (advanced settings needs to be on to see this tab)
; If you use Esc as your exit key, it seems to crash the emu because it also takes the emu out of fullscree,n and it need to be closed in Task Manager. It doesn't happen if you leave fullscreen first
;
; Project64 stores its config in the registry @ HKEY_CURRENT_USER\Software\JaboSoft\Project64 DLL
; and also @ HKEY_CURRENT_USER\Software\N64 Emulation
;----------------------------------------------------------------------------
HideLoading = true ; This speeds up loading roms but can cause some PCs to get stuck at the Open Rom window. Disable it if you have this issue
SelectGameMode = 2 ; 1 = Uses a loop to detect the Edit Box has the romname and path in it. This doesn't work on all PCs, so if you get stuck at the open rom window, use mode 2.
; 2 = Uses a simple Ctrl+v to paste the romname and path, then press Enter to load the game.
;----------------------------------------------------------------------------
SetControlDelay, 20 ; raise this if the module is getting stuck somewhere
SetKeyDelay, -1 ; raise this if the module is getting stuck using SelectGameMode 2
GUI_ID := FadeInStart()
7z1 := 7z(romPath, romName, romExtension, 7zExtractDir)
SetKeyDelay, 50
Run, %executable%, %emuPath% ;, Hide
;This fully ensures dialogs are completely hidden even faster than winwait
If ( HideLoading = "true" )
SetTimer, WaitForDialogEmu, 2
WinWait, AHK_class Project64 Version 1.6
WinWaitActive, AHK_class Project64 Version 1.6
Send, ^o ; Open Rom
;This fully ensures dialogs are completely hidden even faster than winwait
If ( HideLoading = "true" )
SetTimer, WaitForDialog, 2
WinWait, AHK_class #32770
WinWaitActive, AHK_class #32770
If ( SelectGameMode = 1 ) {
Loop {
ControlGetText, edit1Text, Edit1, Open ahk_class #32770
If ( edit1Text = romPath . romName . romExtension )
Break
Sleep, 100
ControlSetText, Edit1, %romPath%%romName%%romExtension%, Open ahk_class #32770
}
ControlSend, Button1, {Enter}, AHK_class #32770 ; Select Open
} Else If ( SelectGameMode = 2 ) {
Clipboard := romPath . romName . romExtension
Send, ^v{Enter}
} Else
ScriptError("You did not choose a valid SelectGameMode.`nOpen the module and set the mode at the top.")
WinWaitActive, AHK_class Project64 Version 1.6
Sleep, 4000 ; giving time for emu to load rom so Hyperspin doesn't pop into view
If ( HideLoading = "true" ){
SetTimer, WaitForDialogEmu, Off
SetTimer, WaitForDialog, Off
}
GUI_ID2 := FadeInExit()
Process, WaitClose, %executable%
7z2 := 7zCleanUp()
GUI_ID4 := FadeOutExit()
WinActivate, Hyperspin
ExitApp
WaitForDialogEmu:
IfWinNotExist, AHK_class Project64 Version 1.6
Return
Else
WinSet, Transparent, 0, AHK_class Project64 Version 1.6
Return
WaitForDialog:
IfWinNotExist, Open ahk_class #32770
Return
Else
WinSet, Transparent, 0, Open ahk_class #32770
Return
CloseProcess:
GUI_ID3 := FadeOutStart()
WinClose, ahk_class Project64 Version 1.6
Returnmerci l'ami, je teste de suite ....