Author Topic: duel start for TrackIr and BoS  (Read 629 times)

Offline HellCat (Sully)

  • Guest
  • Hero Member
  • *
  • Posts: 850
    • View Profile
duel start for TrackIr and BoS
« 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
« Last Edit: May 13, 2017, 12:28:04 pm by AKA_Sully »
Cougar PS 700W l i5-7600K @ 4.7 l 16GB DDR4 2400 Ram l 500GB Corsair SSD & addlink SSD 512GB l GTX1080 WINDFORCE 3X OC l Win7 64 bit

Offline AKA_Goshawk

  • Executive Officer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1108
  • "Death from above"
    • View Profile
    • Goshawk's Nest
Re: duel start for TrackIr and BoS
« Reply #1 on: May 14, 2017, 11:05:08 am »
Very handy, Sully. Thanks for the information.


"Death from above"

Offline HellCat (Sully)

  • Guest
  • Hero Member
  • *
  • Posts: 850
    • View Profile
Re: duel start for TrackIr and BoS
« Reply #2 on: May 14, 2017, 06:13:03 pm »
No problem  8)
Cougar PS 700W l i5-7600K @ 4.7 l 16GB DDR4 2400 Ram l 500GB Corsair SSD & addlink SSD 512GB l GTX1080 WINDFORCE 3X OC l Win7 64 bit

Offline AKA_Goshawk

  • Executive Officer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1108
  • "Death from above"
    • View Profile
    • Goshawk's Nest
Re: duel start for TrackIr and BoS
« Reply #3 on: May 15, 2017, 08:56:38 am »
"Brilliant!"


"Death from above"

Offline HellCat (Sully)

  • Guest
  • Hero Member
  • *
  • Posts: 850
    • View Profile
Re: duel start for TrackIr and BoS
« Reply #4 on: May 15, 2017, 09:51:59 am »
Cool! I was able to use it for DCS as well  8)
Cougar PS 700W l i5-7600K @ 4.7 l 16GB DDR4 2400 Ram l 500GB Corsair SSD & addlink SSD 512GB l GTX1080 WINDFORCE 3X OC l Win7 64 bit