I have a custom built home cockpit panel that I’ve been using successfully with MSFS 2020 and the FlyByWire A320N using MobiFlight to interface with the sim. After upgrading to MSFS 2024, I noticed that I am unable to post multiple K: events to the sim in response to a single button push. For example, I have a single “Fuel Pumps” button in my panel that is supposed to toggle all six fuel pumps on the A320N. The MobiFlight preset code to do this looks something like this:
This isn’t limited to K events unfortunately; it also happens when triggering B events via RPN.
There’s a hacky way to get a pause inserted in MobiFlight for two events and it does resolve the issue, but due to how hacky it is it’s only possible for two events, not more, and only on button inputs.
The exact same sequence of events in MSFS2020 does not have this issue so it does appear to be a something that broke in 2024.
This issue is not specific to MobiFlight. It reproduces when using other external apps that use execute_calculator_code(), for example with WASimCommander.
It’s also not specific to the FBW A320N or K events. Attempting to set the interior cabin light brightness in a C172 using the following code doesn’t work:
The above code causes both knobs to animate, but only one of the two lights turns on. If the two cabin light Bvars are sent separately with some delay between them they work fine.