Feature Request: Restart MP after Exiting Game (1 Viewer)

kmk235

Portal Member
September 2, 2012
32
3
44
Home Country
Germany Germany
Hey Everyone! Thanks for the great plugin!
However, whenever I start i.e. Fifa13 via the plugin and then exit the game, Mediaportal comes back up, but the Skin is no in 100% fullscreen any more... So maybe you could add a checkbox saying "restart mp after gaming" or something like that!?
Or maybe you have an idea that would solve my problem? That would be even better :)
Best!
 

KwizatZ

Portal Member
August 14, 2010
42
16
Home Country
France France
You can make a .bat file to launch game, loop while game exe is running, then restart MP when exe process isn't found anymore.

Something like this (replace fifa path, exe and process with the good ones, as I don't have the game, it's just random names):
Code:
rem launch game
 
"D:\Jeux\FIFA13\fifa13.exe"
 
rem loop while fifa is running
 
:loop
CLS
 
set errorlevel=
 
tasklist /fi "imagename eq fifa13.exe" | find /i "fifa13.exe"> NUL
 
if /i %errorlevel% GTR 0 goto yes
 
ECHO fifa13.exe is working!
timeout /t 5
GOTO loop
 
:yes
 
rem restart mediaportal here
taskkill /T /F /IM MediaPortal.exe
"C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe"

If fifa uses a game launcher, you have to put a second loop for it, like I did in code samples here:
https://forum.team-mediaportal.com/...-bat-problems-for-mp-staying-disabled.115030/
 
Last edited:

Users who are viewing this thread

Top Bottom