Jump to content

Simconnect events


Recommended Posts

Hello,

 

I am working on a simple sharedcockpit module for the PMDG 737 in MSFS. I have managed to sync the CDU when pressing it in the virtual cockpit, by reading the ROTOR_BRAKE simconnect events. However, the CS 737X does not send these events. Is it possible to read button presses of the 737X using Simconnect? 

 

Thanks,

Nils

Link to comment
Share on other sites

  • Aerosoft

Hi Nils,

 

You may need to enable the data broadcasting in the PMDG 737_Options.ini file.
 

Please add an [SDK] section at the end of the file as follows : 

[SDK]

EnableDataBroadcast=1
EnableCDUBroadcast.0=1

EnableCDUBroadcast.1=1
 

The 737_Options.ini file is located in

C:\Users\[USERNAME]\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalState\packages\pmdg-aircraft-737\work

(Where [USERNAME] must be replaced by our name, of course.

 

CAUTION : Before you make ANY change to files, make a backup of it !

 

Best regards.

Link to comment
Share on other sites

Hi,

Thanks for the reply, unfortunately it is not the issue.

In my code, I listen to the ROTOR_BRAKE events that PMDG sends when a button is pressed in the VC. Unfortunately, these events are not being sent whenever I am using the hardware. So the hardware itself does work, but I was wondering whether there is a way to get button presses on the hardware through simconnect.

Best Regards,

Nils

Link to comment
Share on other sites

  • Aerosoft

Hi,

 

Perhaps this post can inspire you. It sends buttons commands to the PMDG using the events via AxisAndOhs : 

Best regards.
 

 

Link to comment
Share on other sites

  • Aerosoft

This may even further help you.
This is the full events list for the B737 for FSX.
https://aviation.allanville.com/misc/fsx-pmdg-737-ngx
As far as I could see, these remain the same for MSFS.

There is a dedicated CDU section.

 

I tested the L1-Left key with AAO and it works well.
The script is as follows : 
1·(>K:#70166)·sleep·:·100·0·(>K:#70166)

- The event ID is 70166 as per the list.
- Set it to "1" -> Key pressed

- Small pressed delay of 100 msec 
- Set it to "0" -> Key released

 

 

Link to comment
Share on other sites

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
×
×
  • Create New...

Important Information

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. Privacy Policy & Terms of Use