Feature Request: Restart MP after Exiting Game

Discussion in 'My Emulators' started by kmk235, December 27, 2012.

  1. kmk235

    kmk235 Portal Member

    Joined:
    September 2, 2012
    Messages:
    32
    Likes Received:
    3
    Gender:
    Male
    Ratings:
    +3 / 0
    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!


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. KwizatZ

    KwizatZ Portal Member

    Joined:
    August 14, 2010
    Messages:
    42
    Likes Received:
    8
    Ratings:
    +11 / 0
    Home Country:
    France France
    Show System Specs
    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 (Text):
    1. rem launch game
    2.  
    3. "D:\Jeux\FIFA13\fifa13.exe"
    4.  
    5. rem loop while fifa is running
    6.  
    7. :loop
    8. CLS
    9.  
    10. set errorlevel=
    11.  
    12. tasklist /fi "imagename eq fifa13.exe" | find /i "fifa13.exe"> NUL
    13.  
    14. if /i %errorlevel% GTR 0 goto yes
    15.  
    16. ECHO fifa13.exe is working!
    17. timeout /t 5
    18. GOTO loop
    19.  
    20. :yes
    21.  
    22. rem restart mediaportal here
    23. taskkill /T /F /IM MediaPortal.exe
    24. "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: December 27, 2012
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!