home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
Guide to solve launchers/bat problems for MP staying disabled
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="KwizatZ" data-source="post: 948060" data-attributes="member: 106444"><p>If you have problems <strong>keeping MP disabled</strong> with .bat files (ie for emulators) or with game launchers (for example in Diablo 3) in Emulators 2, you just have to make bat files with a check of running process in it.</p><p> </p><p><strong>- Example 1: keep MP disabled for mame emulator</strong></p><p>[CODE]D:</p><p>cd "\Jeux\MAME"</p><p>"MAMEUIFX64 v0.147 CAVESH3 NONAG.exe" %1</p><p> </p><p>:loop</p><p>CLS</p><p> </p><p>set errorlevel=</p><p> </p><p>tasklist /fi "imagename eq MAMEUIFX64 v0.147 CAVESH3 NONAG.exe" | find /i "MAMEUIFX64 v0.147 CAVESH3 NONAG.exe"> NUL</p><p> </p><p>if /i %errorlevel% GTR 0 goto yes</p><p> </p><p>ECHO MAMEUIFX64 v0.147 CAVESH3 NONAG.exe is working!</p><p>timeout /t 5</p><p>GOTO loop</p><p> </p><p>:yes[/CODE]</p><p>In this example, I go in MAME directory, I launch MAME for selected rom, then I loop if <em>"MAMEUIFX64 v0.147 CAVESH3 NONAG.exe"</em> process exists. The check is verified every 5 seconds. If the process doesn't exist, the .bat command window closes and MP goes back enabled.</p><p> </p><p> </p><p><strong>- Example 2: keep MP disabled for games with game launcher like Diablo 3</strong></p><p>[CODE]@ECHO OFF</p><p> </p><p>"D:\Jeux\Diablo III\Diablo III.exe"</p><p> </p><p>timeout /t 5</p><p> </p><p>:loop</p><p>CLS</p><p> </p><p>set errorlevel=</p><p> </p><p>tasklist /fi "imagename eq Diablo III.exe" | find /i "Diablo III.exe"> NUL</p><p> </p><p>if /i %errorlevel% GTR 0 goto laucherTest</p><p> </p><p>ECHO Diablo III.exe is working!</p><p>timeout /t 5</p><p>GOTO loop</p><p> </p><p>:laucherTest</p><p>CLS</p><p> </p><p>set errorlevel=</p><p> </p><p>tasklist /fi "imagename eq Blizzard Launcher.exe" | find /i "Blizzard Launcher.exe"> NUL</p><p> </p><p>if /i %errorlevel% GTR 0 goto yes</p><p> </p><p>ECHO Blizzard Launcher.exe is working!</p><p>timeout /t 5</p><p>GOTO loop</p><p> </p><p>:yes</p><p>[/CODE]</p><p>In this example, I use a .bat file where I launch <em>Diablo 3</em>, I wait 5s so the d3 launcher has time to load, then I loop if there is <em>"Diablo III.exe"</em> running (it is the game here), otherwise I have a second loop to check if the launcher <em>"Blizzard Launcher.exe"</em> is running. The check in loops is made every 5s and note that <strong>the order is very important</strong> (1st game loop, 2nd launcher loop), as launcher loads before the game, it must be the last check.</p><p>When the game and the launcher are closed, MP goes back enabled.</p><p> </p><p> </p><p>I hope this mini-guide can help <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="KwizatZ, post: 948060, member: 106444"] If you have problems [B]keeping MP disabled[/B] with .bat files (ie for emulators) or with game launchers (for example in Diablo 3) in Emulators 2, you just have to make bat files with a check of running process in it. [B]- Example 1: keep MP disabled for mame emulator[/B] [CODE]D: cd "\Jeux\MAME" "MAMEUIFX64 v0.147 CAVESH3 NONAG.exe" %1 :loop CLS set errorlevel= tasklist /fi "imagename eq MAMEUIFX64 v0.147 CAVESH3 NONAG.exe" | find /i "MAMEUIFX64 v0.147 CAVESH3 NONAG.exe"> NUL if /i %errorlevel% GTR 0 goto yes ECHO MAMEUIFX64 v0.147 CAVESH3 NONAG.exe is working! timeout /t 5 GOTO loop :yes[/CODE] In this example, I go in MAME directory, I launch MAME for selected rom, then I loop if [I]"MAMEUIFX64 v0.147 CAVESH3 NONAG.exe"[/I] process exists. The check is verified every 5 seconds. If the process doesn't exist, the .bat command window closes and MP goes back enabled. [B]- Example 2: keep MP disabled for games with game launcher like Diablo 3[/B] [CODE]@ECHO OFF "D:\Jeux\Diablo III\Diablo III.exe" timeout /t 5 :loop CLS set errorlevel= tasklist /fi "imagename eq Diablo III.exe" | find /i "Diablo III.exe"> NUL if /i %errorlevel% GTR 0 goto laucherTest ECHO Diablo III.exe is working! timeout /t 5 GOTO loop :laucherTest CLS set errorlevel= tasklist /fi "imagename eq Blizzard Launcher.exe" | find /i "Blizzard Launcher.exe"> NUL if /i %errorlevel% GTR 0 goto yes ECHO Blizzard Launcher.exe is working! timeout /t 5 GOTO loop :yes [/CODE] In this example, I use a .bat file where I launch [I]Diablo 3[/I], I wait 5s so the d3 launcher has time to load, then I loop if there is [I]"Diablo III.exe"[/I] running (it is the game here), otherwise I have a second loop to check if the launcher [I]"Blizzard Launcher.exe"[/I] is running. The check in loops is made every 5s and note that [B]the order is very important[/B] (1st game loop, 2nd launcher loop), as launcher loads before the game, it must be the last check. When the game and the launcher are closed, MP goes back enabled. I hope this mini-guide can help :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
Guide to solve launchers/bat problems for MP staying disabled
Contact us
RSS
Top
Bottom