Message
par French_Kiss » 23 nov. 2014 - 18:07
oui désolé :
(j'ai juste viré quelques lignes de code au début...
Start:
GUI_ID := FadeInStart()
7z1 := 7z(romPath, romName, romExtension, 7zExtractDir)
Run, "%executable%" /open "%romPath%\%romName%%romExtension%" /play /exit /arcaderender, %emupath%, Hide
;Run, "schtasks /run /tn “Future Pinball“", C:\Windows\system32 ; this runs FP via Task Scheduler if you need to run as admin and don't want to see a UAC popup
WinWait, ahk_class FuturePinball
WinWait, ahk_class FuturePinballOpenGL
WinActivate, ahk_class FuturePinballOpenGL
WinWaitActive, ahk_class FuturePinballOpenGL
Gui, destroy
WinWait, ahk_class FuturePinballOpenGLSecondary,,1
WinActivate, ahk_class FuturePinballOpenGLSecondary
WinWaitActive, ahk_class FuturePinballOpenGLSecondary,,1
WinWaitClose, ahk_class Ghost
Loop {
IfWinActive, Future Pinball ahk_class FuturePinballOpenGL
Break
WinActivate, Future Pinball ahk_class FuturePinballOpenGL
Sleep, 50
}
WinWaitActive, Future Pinball ahk_class FuturePinballOpenGL
GUI_ID2 := FadeInExit()
Process, WaitClose, %executable%
7z2 := 7zCleanUp()
GUI_ID4 := FadeOutExit()
WinActivate, Hyperspin
ExitApp
CloseProcess:
GUI_ID3 := FadeOutStart()
WinHide, ahk_class FuturePinball ; need these 2 lines otherwise the table editor flashes over the GUI
WinMinimize, ahk_class FuturePinball
WinClose, ahk_class FuturePinball
WinWaitClose, ahk_class FuturePinball ; this helps eliminate the slight flicker when you exit the table
Return