Hi everyone,
First of all congratulations on the proper release of FSUIPC7 and I want to express my gratitude for this quick release. Without it, this community would never be what it is now. I usually crawl the forum to stay up to date with the latest developments, but this time I really need some help.
For years now me and my father have been working on a 737 cockpit. My proud father does all the mechanical stuff and I am usually the one that does all the coding.
For a very long time we have been using FSBUS, which simply utilizes FSUIPC to read and write to offsets. All of that was always going for well in FSX since we used the iFly 737 and a 3rd party developer had created a wonderful application called iFly2Fsuipc which exposed all the iFly IPC reads and writes to offsets.
So now in a time where the 737 went missing in MSFS2020, we decided to develop a nice and small FCU to be used at his desk. FSBUS has been sufficient until we wanted to utilize some functions that we can't seem to find the offsets for.
The first solution we have tried was to use keyboard assignments. But for whatever reason (and this might be a bug) it keeps on sending the wrong parameters.
I set NUM0 to SPEED_SLOT_INDEX_SET with param 1. and NUM1 to param 2. While being focussed on the FSUIPC screen (the one with the menu) and hitting the keys they actually do send param 1 and param 2 and everything functions as expected. But whenever I focus on the MSFS2020 window they suddenly start sending Param 2 at all times, on both keys. Have spent several hours trying to figure it out, but sadly enough I was unable to resolve the issue.
Now my question is: what is the easiest way to expose IPC reads and writes to Offsets? All I want is to be able to read/write param 1 and 2 to SPEED_SLOT_INDEX_SET. I am not familiar with LUA but after doing some research I saw that SimConnect does not expose it's LVar's yet, meaning I am unable to use LUA for this matter (correct me if I am wrong please).
Some help or pointing me in the right direction would be much appreciated.
Kind Regards,
Joey