Automatically Loading TrackIR with FSX through FSUIPC

Post Reply
DocLotus
Posts: 59
Joined: Sun Feb 22, 2004 5:00 am

Automatically Loading TrackIR with FSX through FSUIPC

Post by DocLotus » Thu May 26, 2011 6:30 pm

I use TrackIR only with FSX and often forget to load it before loading FSX.

I have the latest registered version of FSUIPC which automatically loads with FSX. I was wondering if TrackIR can be automatically loaded through FSUIPC at the same time?

OR... Is there another way to automatically load TrackIR when FSX is loaded.

It would also be nice if TrackIR was to unload when exiting FSX.

Thanks;
Doc

NaturalPoint - Mike
Posts: 1896
Joined: Tue Feb 01, 2011 8:41 am
Location: Corvallis, OR

Re: Automatically Loading TrackIR with FSX through FSUIPC

Post by NaturalPoint - Mike » Fri May 27, 2011 11:56 am

I'm not sure if you can load TrackIR with FSUIPC, however it would be entirely possible to create a batch file that loads everything with a single click. Something to the effect of:


@echo off
start "c:\program files (x86)\NaturalPoint\TrackIR5\TrackIR5.exe"
start "c:\program files (x86)\Microsoft Games\Flight Simulator X\fsx.exe"

DocLotus
Posts: 59
Joined: Sun Feb 22, 2004 5:00 am

Re: Automatically Loading TrackIR with FSX through FSUIPC

Post by DocLotus » Sat May 28, 2011 5:29 pm

That's kind of what I was thinking as I could not find anything in FSUIPC that eluded to loading an external file. Just thought I would ask just in case I missed something.

As far as the batch file goes I was already thinking about that as I could also load FRAPS at the am etime.

Thanks;
Doc

DocLotus
Posts: 59
Joined: Sun Feb 22, 2004 5:00 am

Re: Automatically Loading TrackIR with FSX through FSUIPC

Post by DocLotus » Sat May 28, 2011 8:44 pm

Your suggested bat file did not work; seems that bat files do not like the spaces in C:\Program Files (x86)\etc. I tried underscores but they also did not work.

I did manage to get everything going with shortcut links.

As I run my FSX from drive D (an OCZ Vertex III SSD) I had to create shortcut links for FRAPS and TrackIR5 to Drive C:\Program Files (x86)\etc. The FRAPS.lnk and TrackIR5.lnk shortcuts had to be put into the root of drive D to avoid any spaces in folder names otherwise it would bomb.

As FSX is on drive D and the folder it has no spaces that one worked without having to resort to a shortcut link.

The final bat file is as follows...

@echo off
start D:\Fraps.lnk
start D:\TrackIR5.lnk
start D:\Flight\FSX\fsx.exe

If you know how to load a files (through a bat file) that sits in a folder with spaces in the name I would be much appreciated as it would be a little cleaner without the shortcuts links.

Thanks;
Doc

DocLotus
Posts: 59
Joined: Sun Feb 22, 2004 5:00 am

Re: Automatically Loading TrackIR with FSX through FSUIPC

Post by DocLotus » Sat May 28, 2011 10:02 pm

Found a slightly simpler way to load all three items with the two shortcut links in the same folder as the bat file...

@echo off
ChDir
start Fraps.lnk
start TrackIR5.lnk
start D:\Flight\FSX\fsx.exe

The ChDir command changes the directory to the current directory where the bat file is residing; in this case "D:\Configs and Settings\FSX\BAT Loader". As the current directory is already the one holding the two shortcut files no reference to drive D is needed.

Doc

DocLotus
Posts: 59
Joined: Sun Feb 22, 2004 5:00 am

Re: Automatically Loading TrackIR with FSX through FSUIPC

Post by DocLotus » Sat May 28, 2011 10:07 pm

I would also like to exit or close down all three programs when I exit FSX. I can put a Pause command directly after the D:\Flight\FSX\FSX.exe command which will pause the bat file until FSX is closed. The bat file would then continue running with the commands to close FRAPS and TrackIR5. What those exit or close commands are I don't know.

Any ideas.

Thanks;
Doc

DocLotus
Posts: 59
Joined: Sun Feb 22, 2004 5:00 am

Re: Automatically Loading TrackIR with FSX through FSUIPC

Post by DocLotus » Sun May 29, 2011 12:41 pm

Well, I finally figured out how to make it all work.

The final batch file looks like this...

@echo off
REM Batch file runs silently.

ChDir
REM Change to current directory the bat file is running from.

Start Fraps.lnk
REM Starts Fraps shortcut link.

Start TrackIR5.lnk
REM Starts TrackIR5 shortcut link.

Call D:\Flight\FSX\fsx.exe
REM Calls FSX and returns after FSX closes.

TaskKill /F /IM Fraps.exe
REM Kills Fraps.

TaskKill /F /IM TrackIR5.exe
REM Kills TrackIR5

The switches on TaskKill are...
/F Forcefully close running application; ideal for FRAPS and TrackIR5 as there is usually nothing to save.
/IM Allows named running application to be closed gracefully.

This batch file runs totally in the background and automatically terminates after the last item runs (in this case TrackIR5).

Hope this helps someone else with similar questions;
Doc

NaturalPoint - Mike
Posts: 1896
Joined: Tue Feb 01, 2011 8:41 am
Location: Corvallis, OR

Re: Automatically Loading TrackIR with FSX through FSUIPC

Post by NaturalPoint - Mike » Tue May 31, 2011 5:14 pm

Nice!

kama9999
Posts: 3
Joined: Mon Dec 13, 2010 6:57 pm

Re: Automatically Loading TrackIR with FSX through FSUIPC

Post by kama9999 » Tue Jan 03, 2012 6:32 pm

Could be done also with the fully registered version of FSUIPC as follow;

You have to insert lines in the FSUIPC4.ini file which is in the module subdirectory of FSX

The example below start track IR, SPAD driver for Saitek modules and FSWidget. But same principle applies to others software.

The runif command check if the software is already running. If yes, it dont start it again. There is also functions to close process if FSUIPC but I dont use them.

The =ready parameter wait until FSX is ready to fly before starting the others software. I use them as I want them to start in a specific sequence but it may work without.

[programs]
runif1=ready,C:\fsx trackir\TrackIR5.exe
runif2=ready,C:\fsx SPAD\Spad.exe
runif3=ready,C:\fsx FSWidgets Network Pack\FSWNetHost.exe

Pierre

Post Reply