Jump to content
The simFlight Network Forums

Can a Lua program be launched automatically?

Recommended Posts

Hi John,

I have a small Lua file that I want to run in P3D v3. It indicates the actual IAS because the aircraft’s own gauge isn’t always accurate. I have got it running by assigning a button press to start it but I was wondering if there’s a way of starting it automatically? I need that button for other things.

Once displayed it can stay on screen for the duration of the flight as the window can be sized quite small.

Link to comment
Share on other sites

Hi Ray,

of course - just add to the [Auto] section of your ini (or the [Auto.<profile>] section if profile specific. See p40 of the Advanced User manual.

...ah, but just noticed that you are referring to P3Dv3 not v4, so presume for FSUIPC4, no? Not 100% sure when this was implemented so this feature may or may not be available - check your FSUIPC4 user manual.


Link to comment
Share on other sites

Hi John,

Yes, it's for FS Labs Concorde only available in 32-bit for P3D v3. I shall check the FSUIPC4 manual - thanks!

Does it require a paid version to run Lua files? I'm assuming so. I have the paid version but it's something I want to distribute so that would be important.

Link to comment
Share on other sites

Hi John,

According to the FSUIPC4 manual automatic running of Lua modules is possible. However, despite my best efforts I cannot get it to display when a scenario is loaded. This is what I have in my fsuipc4.ini

[Window.Radar Contact]
Docked=196, 2457, 3575, 2548

1=IAS Display

1=IAS Display

[Window.LUA display]
Docked=6456, 9340, 581, 683

And for suppressing / showing SimConnect windows I have these settings in the [General] section.


They seem okay but the only way of getting the lua to display is via a button assignment.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.