Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Getting the FLT file being loaded

Featured Replies

  • Commercial Member

Is it possible? The obvious answer is to check the 'Last_Accessed' attribute on the flt file but as the operating system can defer stamping that information to the file for up to an hour, it's not really a lot of use. Finding which flt file has just been saved is relatively easy as the 'Last_Modified' attribute is stamped within two seconds. As the flt file is really just an ini file, I'd like to use it to store additional panel information associated with that flight.

The SimcConnect API

HRESULT SimConnect_RequestSystemState

(

HANDLE  hSimConnect,

SIMCONNECT_DATA_REQUEST_ID  RequestID,

const char*  szState

);

 

where the null-terminated string szState identifies the system function:
 

AircraftLoaded Requests the full path name of the last loaded aircraft flight dynamics file. These files have a .AIR extension.

 
DialogMode Requests whether the simulation is in Dialog mode or not. See SimConnect_SetSystemState for a description of Dialog mode.

 
FlightLoaded Requests the full path name of the last loaded flight. Flight files have the extension .FLT.

 
FlightPlan Requests the full path name of the active flight plan. An empty string will be returned if there is no active flight plan.

Sim Requests the state of the simulation. If 1 is returned, the user is in control of the aircraft, if 0 is returned, the user is navigating the UI.

Gerry Howard

  • Commercial Member

Just a word of caution... Prepar3D v2.5 has panel state saving built in... might want to look into that before someone shoves your project into that and things get crossed. :)

Ed Wilson

Mindstar Aviation
My Playland - I69

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.