Message
par NutsreturN2 » 22 oct. 2013 - 07:09
Pour Gens ( version2.14):;----------------------------------------------------------------------------
; Sega Genesis
; Gens v2.14
; by djvj
; 1.2
;
; Notes:
; For Sega CD, don't forget to setup your bios or you might just get a black screen.
; Fullscreen and stretch are controlled via the variable below
;----------------------------------------------------------------------------
Fullscreen = true
Stretch = true
;----------------------------------------------------------------------------
gensINI := CheckFile(emuPath . "Gens.cfg")
If ( romExtension = ".cue" )
ScriptError("Gens does not support cue files, please use another extension")
IniRead, currentFullScreen, %gensINI%, Graphics, Full Screen
IniRead, currentStretch, %gensINI%, Graphics, Stretch
GUI_ID := FadeInStart()
7z1 := 7z(romPath, romName, romExtension, 7zExtractDir)
; Setting Fullscreen setting in ini if it doesn't match what user wants above
If ( Fullscreen != "true" And currentFullScreen = 1 )
IniWrite, 0, %gensINI%, Graphics, Full Screen
Else If ( Fullscreen = "true" And currentFullScreen = 0 )
IniWrite, 1, %gensINI%, Graphics, Full Screen
; Setting Stretch setting in ini if it doesn't match what user wants above
If ( Stretch != "true" And currentStretch = 1 )
IniWrite, 0, %gensINI%, Graphics, Stretch
Else If ( Stretch = "true" And currentStretch = 0 )
IniWrite, 1, %gensINI%, Graphics, Stretch
Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%
WinWait, Gens ahk_class Gens
WinWaitActive, Gens ahk_class Gens
GUI_ID2 := FadeInExit()
Process, WaitClose, %executable%
7z2 := 7zCleanUp()
GUI_ID4 := FadeOutExit()
WinActivate, Hyperspin
ExitApp
CloseProcess:
GUI_ID3 := FadeOutStart()
WinClose, Gens ahk_class Gens
Return
Pour ReGen ( verison 0.97):
;----------------------------------------------------------------------------
; Sega Genesis
; Regen v0.97
; by djvj
; 1.0
;
; Notes:
; Set your fullscreen resolution by going to Video-Fullscreen Resolution
;----------------------------------------------------------------------------
Fullscreen = true
;----------------------------------------------------------------------------
regenINI := CheckFile(emuPath . "regen.ini")
GUI_ID := FadeInStart()
7z1 := 7z(romPath, romName, romExtension, 7zExtractDir)
Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%
WinWait, Regen ahk_class Regen
WinWaitActive, Regen ahk_class Regen
; Go fullscreen
If ( Fullscreen = "true" ) {
Sleep, 100 ; just in case some lag is needed
WinMenuSelectItem, Regen ahk_class Regen,,Video,Enter Fullscreen
; Send !{Enter} ; alt method to go fullscreen
}
GUI_ID2 := FadeInExit()
Process, WaitClose, %executable%
7z2 := 7zCleanUp()
GUI_ID4 := FadeOutExit()
WinActivate, Hyperspin
ExitApp
CloseProcess:
GUI_ID3 := FadeOutStart()
WinClose, Regen ahk_class Regen
Return
Voila en esperant que ça t aide