- August 14, 2010
- 42
- 16
- Home Country
- France
If you have problems keeping MP disabled 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.
- Example 1: keep MP disabled for mame emulator
In this example, I go in MAME directory, I launch MAME for selected rom, then I loop if "MAMEUIFX64 v0.147 CAVESH3 NONAG.exe" 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.
- Example 2: keep MP disabled for games with game launcher like Diablo 3
In this example, I use a .bat file where I launch Diablo 3, I wait 5s so the d3 launcher has time to load, then I loop if there is "Diablo III.exe" running (it is the game here), otherwise I have a second loop to check if the launcher "Blizzard Launcher.exe" is running. The check in loops is made every 5s and note that the order is very important (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
- Example 1: keep MP disabled for mame emulator
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
- Example 2: keep MP disabled for games with game launcher like Diablo 3
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
When the game and the launcher are closed, MP goes back enabled.
I hope this mini-guide can help
Last edited: