Sign in to follow this  

VB.NET SetDataOnSimObject

Recommended Posts

Hi, Does anyone know how to use SetDataOnSimObject function in VS2005 to change my plane's airspeed and altitude. I am just modifying Managed VB.NET Code Sample to read data from FSX but I wish to set data to fsx.Such as I want to create a button that can set my airspeed to 250 immediately. I tried to put below into Private Sub initDataRequest() of the sample: Dim pos As Microsoft.FlightSimulator.SimConnect.SIMCONNECT_DATA_INITPOSITION pos.Altitude = 3500 pos.Airspeed = 30 fsx_simconnect.SetDataOnSimObject(StructDefinitions.Struct1, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT, pos)It didn't work. Thankyou.

Share this post

Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this