Skip to content

Read & Write L Vars #106

Answered by EvenAR
ksi9302 asked this question in Q&A
Jul 12, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Hi! For sending keypresses, you might want to use input events (aka H-events if I'm not mistaken). This sample shows how to retrieve a list of all the available ones. Then you would use setInputEvent() to trigger them.

Annunciators/lights seem to be available as LVARs. I think you can read those in the same way as simvars now. See SimConnect_AddToDataDefinition. You can find the available LVARs in the MSFS developer menu under Tools -> Behaviors -> LocalVariables. Those starting with MSATR_MCDU1_**** are probably what you are looking for.

I'm not sure how you can extract the CDU screen text though.. Looks like LVARs are only for numeric values.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ksi9302
Comment options

@EvenAR
Comment options

@ksi9302
Comment options

@EvenAR
Comment options

@ksi9302
Comment options

Answer selected by ksi9302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants