SimConnect is the official way for a program on your PC to talk to Microsoft Flight Simulator 2024. It can read what the aircraft is doing, press buttons for you, spawn objects and look up airports. This guide covers the first job, reading data, because everything else builds on it.
The Hangar Addons Telemetry app gets its numbers from the sim this way. The sample below is a cut down version of that idea in a plain console program.
What you need
- Windows, with Microsoft Flight Simulator 2024 installed.
- The SDK. Turn on Developer Mode in the sim, then pick Help > SDK Installer from the developer toolbar and run the file it downloads. It lands in
C:\MSFS 2024 SDKunless you move it, and sets theMSFS2024_SDKenvironment variable. - The .NET SDK. The official docs describe .NET Framework 4.7, but the sample here builds on .NET 10 against SDK 1.8.2.
- The SDK. Turn on Developer Mode in the sim, then pick Help > SDK Installer from the developer toolbar and run the file it downloads. It lands in
Set up the project
Make a folder, and put this project file in it. The two entries that matter are the managed library you code against and the native SimConnect.dll, which has to sit next to your program.
