Run task when Diablo II is closed
Many old games (Starcraft, Diablo II, Diablo, Age of Kings...) have huge problems displaying colors correctly on Windows 7. For Starcraft, I have succeeded to fix this using:
- Opening the screen resolution settings dialog (sometimes works)
- Killing
explorer.exe(always works) - Using DirectDraw color fix (sometimes works)
For Diablo II, only the 2) works for me. So I have written following batch file:
rem Kill explorer.exe
taskkill /IM explorer.exe /F
rem Run the game
"Diablo II.exe"
rem After game is over, resume explorer.exe
rem explorer.exe
The problem is, that the actual process for the game is Game.exe and the Diablo II.exe exits immediately - so the explorer immediately restarts.
Do you have any idea, how to automate the resuming of explorer.exe after I close Diablo II?
Best Answer
Particularly for Diablo 2 I recommend installing a Glide Wrapper (particularly the one by Sven Labusch, though it is only intended to be used with Diablo 2), configure the game to use Glide and configure the wrapper to run in desktop resolution at 32bit color depth. The only thing left to configure then, is to fall back to Aero Basic mode while the game runs.
There may be similar workarounds for other games (for example there are newer OpenGL and Direct3D drivers for Unreal Tournament that fix these kinds of issues), so trying to find these may improve your game experience a lot more than hacking around those side effects.
Pictures about "Run task when Diablo II is closed"



How long does a Diablo 2 game stay open?
Moderator. In regular Diablo, if you create a game and leave it after less than five minutes, it persists for 30 or 60 seconds. If the game is older than 5 minutes, it persists for 5 minutes.How do you do runs in Diablo 2?
Press R/mouse 5 on your keyboard to make your character run. Press R/ mouse 5 again, to make them stop running.Can I run Diablo 2 in windowed mode?
Make sure the game is patched to the latest version. If that doesn't work, try running the game in windowed mode: Right-click the Diablo II icon and click Properties. Click the Shortcut tab.Diablo 2 Resurrected (D2R) Skipping/Lagging/Crashing FIXED!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Dominika Roseclay, Andrea Piacquadio, George Milton, Kampus Production
