Page 1 sur 1

[RESOLU]Petit Soucie MUGEN

Publié : 26 janv. 2013 - 17:17
par Souichirou
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%

      }
  }

Re: Petit Soucie MUGEN [Résolu]

Publié : 26 janv. 2013 - 20:04
par aadsdaa
essaye d'enlever cette ligne:Run, "D:\hyperspin\Pantallas de Espera\Mugen\hypersplash.exe"

Re: Petit Soucie MUGEN [Résolu]

Publié : 26 janv. 2013 - 20:04
par NutsreturN2
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

Re: Petit Soucie MUGEN [Résolu]

Publié : 27 janv. 2013 - 04:39
par Souichirou
Nuts, JE T'AIMEEEEE, si je t'avais en face de moi je te ferais un gros bisous baveuuuu, merci beaucoup :cheers: :cheers: :cheers: