Forums
No problems, but a question about startup. - Printable Version

+- Forums (https://www.fsxwx.com/mybb)
+-- Forum: Categories (https://www.fsxwx.com/mybb/forumdisplay.php?fid=3)
+--- Forum: Discussions (https://www.fsxwx.com/mybb/forumdisplay.php?fid=5)
+--- Thread: No problems, but a question about startup. (/showthread.php?tid=53)



No problems, but a question about startup. - flyguy - 2015-05-26

It works fine, but I would wonder if I could have the program startup from exe.xml or some other auto-start, the way I do it right now is:
start your program
start fsx
connect button on your program.

Is that the way it's supposed to be, or did I miss something?

Thanks,


No problems, but a question about startup. - toggernet - 2015-05-27

1.Right click and edit "exe.xml" found in "C:\Users\your user name\AppData\Roaming\Microsoft\FSX"
2.Add this to your exe.xml just above the last entry called </SimBase.Document>

<Launch.Addon>
<Disabled>False</Disabled>
<ManualLoad>False</ManualLoad>
<Name>FSXWX</Name>
<Path>C:\Windows\System32\wscript.exe</Path>
<CommandLine>C:\FSX\Modules\FSXWX\fsxwx-connect.vbs</CommandLine>
</Launch.Addon>

3.Make sure <CommandLine>C:\FSX\Modules\FSXWX\fsxwx-connect.vbs</CommandLine> has the same path as your FSXWX installation folder, "fsxwx-connect.vbs" will be created later.
4.Save and exit

5. Right click and create a new text document in your FSXWX installation folder
6. Copy and paste these commands

Set oShell = CreateObject("WScript.Shell")
WScript.Sleep 10000
oShell.Run("""C:\FSX\Modules\FSXWX\FSXWX.exe""")
WScript.Sleep 3000
oShell.AppActivate "FSXWX 1.5.5"
WScript.Sleep 50
oShell.SendKeys "{ENTER}"

7.WScript.Sleep 10000 is a delay in milliseconds (10 seconds) to allow FSX to startup before FSXWX - increase if it takes longer otherwise it wont connect
8.Make sure oShell.Run("""C:\FSX\Modules\FSXWX\FSXWX.exe""") has the same path as your FSXWX installation folder
9.FSXWX 1.5.5 is the title of the application window - this must be changed for new versions as the script changes focus to this windows name and then hits ENTER for you (Connect)
10.Save, exit and rename as fsxwx-connect.vbs

Start FSX normally and it will load FSXWX and connect automatically

FSX will ask to allow and run wscript.exe, allow it as this runs the vbs script.


No problems, but a question about startup. - toggernet - 2015-05-28

If you want to auto start FSXWX and connect Manually (without the vbs script shown above) then use this in the exe.xml:

<Launch.Addon>
<Disabled>False</Disabled>
<ManualLoad>False</ManualLoad>
<Name>FSXWX</Name>
<Path>C:\FSX\Modules\FSXWX\FSXWX.exe</Path>
</Launch.Addon>

If you want to start FSXWX independantly and connect automatically (with the vbs script created above), leave out the exe.xml modification and just double click the fsxwx-connect.vbs (create a desktop shortcut aswell if you want)