AKA Wardogs

Mods => Mods => Topic started by: HellCat (Sully) on May 13, 2017, 12:05:13 pm

Title: duel start for TrackIr and BoS
Post by: HellCat (Sully) on May 13, 2017, 12:05:13 pm
I always forget to start TrackIr before my game and have to close out the game to go back and start ....found some batch files  to start TrackIr and then BoS .. when you close Bos it will shut down TrackIr. Works like a charm .... I'm using win 7 so mileage may vary...I made them them for CLOD and DCS as well.

Instructions
What you have to do is copy the text below in notepad and save it as a "Whatever Name You Want.bat". Put the file wherever you want and create a shortcut from it to the desktop.
If you want it to have an icon from IL2, just right click the shortcut, choose "Properties", then "Change Icon", and point to your IL2.exe, finally choose the star icon from the list.
 
This text assumes that both IL2 and TrackIR are in C: disk, and its not a Steam version. If it is Steam version, check and correct the paths accordingly.


Quote
@echo off

tasklist /FI "IMAGENAME eq TrackIR5.exe" | find /i "TrackIR5.exe"

IF ERRORLEVEL 2 GOTO NEXTPROGRAM
IF ERRORLEVEL 1 GOTO LAUNCTRIR
:NEXTPROGRAM
goto IL2LAUNCHER


:LAUNCTRIR
echo Starting TrackIR...
start "" "C:\Program Files (x86)\NaturalPoint\TrackIR5\TrackIR5.exe"

TIMEOUT /T 3

goto IL2LAUNCHER

:IL2LAUNCHER

tasklist /FI "IMAGENAME eq Il-2.exe" | find /i "Il-2.exe"

IF ERRORLEVEL 2 GOTO NEXTPROGRAM2
IF ERRORLEVEL 1 GOTO LAUNCHIL2B

:NEXTPROGRAM2
goto COMPLETE


:LAUNCHIL2B
echo Starting Il-2
cd "C:\Program Files (x86)\1C Game Studios\IL-2 Sturmovik Battle of Stalingrad\bin\game"
start /wait Il-2.exe
TIMEOUT /T 2
echo Closing TrackIR....
Taskkill /IM TrackIR5.exe

goto COMPLETE
Title: Re: duel start for TrackIr and BoS
Post by: AKA_Goshawk on May 14, 2017, 11:05:08 am
Very handy, Sully. Thanks for the information.
Title: Re: duel start for TrackIr and BoS
Post by: HellCat (Sully) on May 14, 2017, 06:13:03 pm
No problem  8)
Title: Re: duel start for TrackIr and BoS
Post by: AKA_Goshawk on May 15, 2017, 08:56:38 am
"Brilliant!"
Title: Re: duel start for TrackIr and BoS
Post by: HellCat (Sully) on May 15, 2017, 09:51:59 am
Cool! I was able to use it for DCS as well  8)