[RESOLU]Petit Soucie MUGEN
Modérateurs : Porko, Modérateurs
- Souichirou
- Amateur
- Messages : 51
- Inscription : 20 janv. 2013 - 00:00
[RESOLU]Petit Soucie MUGEN
Dites moi savez vous pourquoi mes jeux se lance derrière hyperspin ? Je n'arrive pas à le règler.
Edit voici mon module Mugen.ahk, vous pensez pas qu'il y a un soucie dans les deux premières lignes, ou qu'il manque Process, Close, hypersplash.exe
Process, WaitClose, game.exe après executable ?
IniRead, gamePath, %A_Scriptdir%\Modules\%systemName%\settings.ini, %romName%, gamePath
IniRead, params, %A_Scriptdir%\Modules\%systemName%\settings.ini, %romName%, params
Run, "D:\hyperspin\Pantallas de Espera\Mugen\hypersplash.exe"
Run, %rompath%%romname%%romextension%
;fix for runing .lnk files - see above
executable = %romname%.exe
CloseProcess:
ControlSend, , {Esc}, ahk_pid %Errorlevel%
sleep, 2000
Process, Close, Hypersplash.exe
ExitApp
Loop, Addons\*.*,2 ;close running addons
{
addonpath = %A_LoopFileFullPath%
Loop, %addonpath%\*.exe
{
Process, Exist, %A_LoopFileName%
Winclose, ahk_pid %Errorlevel%
Process, WaitClose, %Executable%
}
}
Edit voici mon module Mugen.ahk, vous pensez pas qu'il y a un soucie dans les deux premières lignes, ou qu'il manque Process, Close, hypersplash.exe
Process, WaitClose, game.exe après executable ?
IniRead, gamePath, %A_Scriptdir%\Modules\%systemName%\settings.ini, %romName%, gamePath
IniRead, params, %A_Scriptdir%\Modules\%systemName%\settings.ini, %romName%, params
Run, "D:\hyperspin\Pantallas de Espera\Mugen\hypersplash.exe"
Run, %rompath%%romname%%romextension%
;fix for runing .lnk files - see above
executable = %romname%.exe
CloseProcess:
ControlSend, , {Esc}, ahk_pid %Errorlevel%
sleep, 2000
Process, Close, Hypersplash.exe
ExitApp
Loop, Addons\*.*,2 ;close running addons
{
addonpath = %A_LoopFileFullPath%
Loop, %addonpath%\*.exe
{
Process, Exist, %A_LoopFileName%
Winclose, ahk_pid %Errorlevel%
Process, WaitClose, %Executable%
}
}
Re: Petit Soucie MUGEN [Résolu]
essaye d'enlever cette ligne:Run, "D:\hyperspin\Pantallas de Espera\Mugen\hypersplash.exe"
- NutsreturN2
- Modérateur
- Messages : 2811
- Inscription : 19 oct. 2012 - 01:00
- Localisation : BAGES 66670
- A remercié : 105 fois
- A été remercié : 80 fois
Re: Petit Soucie MUGEN [Résolu]
Moi j ai ça dans Mon .ahk :
;----------------------------------------------------------------------------
; MUGEN
; PCLauncher.exe
; by djvj (original HL1.0 script by brolly)
; 1.0
;
; Notes:
;Blank txt files need to be created for every game
;settings.ini needs to reside with the blank txt files and contain an entry for each game, pointing to the OpenBOR.exe
;example:
;
;[Bastard]
;gamePath = Bastard\WinBastard.exe
;[Mortal Kombat Anthology]
;gamePath = Mortal Kombat Anthology\Mortal Kombat Anthology.exe
;
;emuPath and exe need to point to a dummy exe, like PCLauncher.exe
;romPath needs to point to the dir with all the blank txt files and the settings.ini
;Escape will only close the game from the main menu, it is needed for in-game menu usage otherwise.
;Controls are done via in-game options for each game.
;Larger games are inherently slower to load, this is MUGEN, nothing you can do about it but get a faster HD.
;----------------------------------------------------------------------------
IniRead, gamePath, %romPath%Settings.ini, %romName%, gamePath
Run, "D:\Hyperspin\Pantallas de Espera\Mugen\hypersplash.exe"
Run, %rompath%%romname%%romextension%
;fix for runing .lnk files - see above
executable = %romname%.exe
WinGetTitle, gameTitle, ahk_pid %game_PID%
;Sometimes mugen crashes during exit and doesn't close, so we need to do a workaround to detect it
If ( gameTitle != "HyperSpin" )
{
;If the user exited mugen in under 1500ms then we don't need to do this otherwise the script would hang
IfWinExist, %gameTitle%
{
Loop
{
Sleep, 1000
WinGet, gameState, MinMax, %gameTitle%
If ( gameState != 1 )
{
;Mugen window minimized or closed
Break
}
}
}
}
Sleep 2000
If ( gameTitle != "HyperSpin" )
{
IfWinExist, %gameTitle%
{
Process, Close, %game_PID%
}
}
Process, WaitClose, %executable% ;on some machines/games, MUGEN doesn't close itself properly, this is the work around to make sure it does
sleep, 3000
Process, Close, hypersplash.exe
WinActivate, HyperSpin
ExitApp
CloseProcess:
return
;----------------------------------------------------------------------------
; MUGEN
; PCLauncher.exe
; by djvj (original HL1.0 script by brolly)
; 1.0
;
; Notes:
;Blank txt files need to be created for every game
;settings.ini needs to reside with the blank txt files and contain an entry for each game, pointing to the OpenBOR.exe
;example:
;
;[Bastard]
;gamePath = Bastard\WinBastard.exe
;[Mortal Kombat Anthology]
;gamePath = Mortal Kombat Anthology\Mortal Kombat Anthology.exe
;
;emuPath and exe need to point to a dummy exe, like PCLauncher.exe
;romPath needs to point to the dir with all the blank txt files and the settings.ini
;Escape will only close the game from the main menu, it is needed for in-game menu usage otherwise.
;Controls are done via in-game options for each game.
;Larger games are inherently slower to load, this is MUGEN, nothing you can do about it but get a faster HD.
;----------------------------------------------------------------------------
IniRead, gamePath, %romPath%Settings.ini, %romName%, gamePath
Run, "D:\Hyperspin\Pantallas de Espera\Mugen\hypersplash.exe"
Run, %rompath%%romname%%romextension%
;fix for runing .lnk files - see above
executable = %romname%.exe
WinGetTitle, gameTitle, ahk_pid %game_PID%
;Sometimes mugen crashes during exit and doesn't close, so we need to do a workaround to detect it
If ( gameTitle != "HyperSpin" )
{
;If the user exited mugen in under 1500ms then we don't need to do this otherwise the script would hang
IfWinExist, %gameTitle%
{
Loop
{
Sleep, 1000
WinGet, gameState, MinMax, %gameTitle%
If ( gameState != 1 )
{
;Mugen window minimized or closed
Break
}
}
}
}
Sleep 2000
If ( gameTitle != "HyperSpin" )
{
IfWinExist, %gameTitle%
{
Process, Close, %game_PID%
}
}
Process, WaitClose, %executable% ;on some machines/games, MUGEN doesn't close itself properly, this is the work around to make sure it does
sleep, 3000
Process, Close, hypersplash.exe
WinActivate, HyperSpin
ExitApp
CloseProcess:
return
- Souichirou
- Amateur
- Messages : 51
- Inscription : 20 janv. 2013 - 00:00
Re: Petit Soucie MUGEN [Résolu]
Nuts, JE T'AIMEEEEE, si je t'avais en face de moi je te ferais un gros bisous baveuuuu, merci beaucoup :cheers: :cheers: :cheers: