No announcement yet.

Batch file to auto-start TrackIR and TeamSpeak

  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch file to auto-start TrackIR and TeamSpeak

    Hi Dr. Nick! I mean, hi everybody!

    Given that I can be absent-minded and/or in a vegetative state and/or distracted by shiny objects when it comes to gaming, I figured I would write a script for Windows to automatically run my applications in advance of starting ARMA 2, so I don't repeatedly join the server and then realise I !&$%ing forgot to plug in my Saitek X52, run TrackIR, and run TeamSpeak 3. While I still can't make sure I plug in the bloody joystick until I glance down at the conspicuous absence of LEDs in front of me, it saves the other part of the hassle.

    In TS3 you can also set up an auto-join to a specified channel of your choice (see other post). Create a bookmark, and in the dialog where you normally assign the server IP address and port, you can click the More button in the bottom left to specify a nickname and default channel. The channel is a literal text string that is simply copied directly from the window when you are connected to the server. (There's a convenient 'Use my current channel' button too.)

    If you want to use it, copy-paste the contents into a plain text file in your Arma 2 directory (using Notepad or similar) and save it with the extension ".cmd", then create a shortcut on your windows desktop to run that command file instead of the ARMA 2 application directly. You'll also have to change the file locations as appropriate for your installation (e.g., if you're using the latest stable ARMA 2 instead of the beta version, you'll want to drop back from "Expansion\beta" to your root ARMA 2 directory). I use Windows 7 Ultimate 64, so if you're using a 32-bit OS you'll also have to nix any reference to "Program Files (x86)".

    ALERT: Bear in mind that this does not run Six Updater and thus does not automatically update your copies of ACE/ACRE, and it also sidesteps past ACE Clippi Tool (i.e., it assumes you've already assigned all of your ACE settings). Use Six Updater as your ARMA 2 launcher if you're not familiar with what's involved. Also, it assumes you've already been able to play ARMA 2 on TacticalGamer Bravo at least once -- if you haven't already connected to TeamSpeak, registered your TeamSpeak ID on TacticalGamer, etc., then this is not for you.


    @echo off

    rem Runs TrackIR 5 and TeamSpeak 3 Client, minimised
    echo Booting Track IR 5...
    start "TrackIR 5.1" /min "C:\Program Files (x86)\NaturalPoint\TrackIR5\TrackIR5.exe"
    echo Booting TeamSpeak 3 Client...
    start "TeamSpeak 3 Client" /min "C:\Program Files\TeamSpeak 3 Client\ts3client_win64.exe"
    echo .

    rem Waits for user input
    echo TrackIR and TeamSpeak 3 loaded -- press any key to load ARMA2 or Ctrl+C to cancel.
    echo While ARMA 2 is loading or running, do not close the command window on the desktop.

    pause > nul
    start "Arma 2 Combined Operations" /wait /D"C:\Program Files\Arma 2" "C:\Program Files\ArmA 2\Expansion\beta\arma2oa.exe" [email protected];@CBA;@JayArma2Lib;@ACE;@ACEX;@ACEX_USNav y;@ACEX_RU;@ACEX_SM;servermods\@tgmaps

    rem Shuts down TIR5 and TS3 after Arma 2 has ended (don't close the command window on your desktop before then)
    rem Note that this also shuts down TS3 while you are quitting ARMA 2. If you want to say your goodbyes, either do it in game or delete the last two lines.

    echo Shutting down Track IR 5...
    taskkill /F /IM TrackIR5.exe
    echo Shutting down TeamSpeak 3 client...
    taskkill /F /IM ts3client_win64.exe
    Socialism is when man exploits man. Capitalism is the other way around. --anonymous

  • #2
    Re: Batch file to auto-start TrackIR and TeamSpeak

    Thanks but I have Sixupdater already starting my TracIR and Fraps when I click the Six icon for each of the Tacticalgamer servers. In Six you have a Apps tap where you can put the exe's for any app you need to start prior to getting into any of the servers.

    p.s. Thanks for the effort, somebody that doesn't use Sixupdater icon's to start their game might find this useful.




    TeamSpeak 3 Server




    Twitter Feed