• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS SDK Example to control a plane?

Messages
125
Country
unitedstates
Can someone point me to an example C, C++ or C# code that controls thrust, landing gear or similar on a MS FS 2020 plane?
thanks
 
Messages
27
Country
unitedstates
Try SDK\Samples\SimvarWatcher. It has every Sim Connect variable in the dropdown. You can get/set any variable, but it may not be supported yet (or ever) for setting or getting. You can load/save a set of vars you want to inspect. I'm finding it extremely useful.
 
Messages
125
Country
unitedstates
I have complete success reading the variables and have an application running.. but when I set the variables it has no effect and there must be some functions to do the control functions.. I'd like one example of someone controlling any parameter in an aircraft... .. <update fixed and working>
 
Last edited:
Messages
2,077
Country
us-ohio
Does no one read the SDK documents any more? Even the FSX SDK documentation applies in explaining how to use SimConnect.
 
Messages
125
Country
unitedstates
II have a program that reads ever variable in simconnect
 
Last edited:
Messages
2,077
Country
us-ohio
And yet you didn't read the part regarding EVENTS. If you want a good understanding of SimConnect. Go read the SDK for Prepar3D. Yes, it still is relevant.

Or maybe read about SimConnect_TransmitClientEvent:

The SimConnect_TransmitClientEvent function is used to request that the Microsoft Flight Simulator server transmit to all SimConnect clients the specified client event.
 
Messages
125
Country
unitedstates
I have it working, it's very cool, moderator can delete this thead
 
Last edited:
Messages
125
Country
unitedstates
someone sent me the example I needed, I'd like to send you an amazon gift card in gratitude .. but can't find the message. Text me please.
 
Last edited:
Top