Basically, I'm using a software called Xpadder that lets me control my computer with a game pad. Problem is, when I start a game I need Xpadder to end. So I typed this batch file
tasklist /FI "IMAGENAME eq Xpadder.exe" 2>NUL | find /I /N "Xpadder.exe">NUL
if "%ERRORLEVEL%"=="0" (
TASKKILL /F /IM "Xpadder.exe"
)
Works a charm. Problem is though, it minimises the game when it runs! Is there anyway I can avoid this?