Hi Paul and thanks for the quick response. Whilst going through the examples I did end up using code from the keypress example code and it seems to work the way I want it to work. One just needs to take special care to unassign keys before closing otherwise it eventually gives errors when opening and closing the app several times whilst FSX is running a single instance (obviously this is experienced only during debugging when one binds and unbinds the keys several times for a single FSX session)
I think the ideal approach for me in the end might be to add my code as an instrument but I have no idea how to start with this with c# so if you have any thoughts on how to create a simple instrument such as FSX Ground Handling 5 (https://flyawaysimulation.com/downloads/files/2634/fsx-groundhandling-gauges-pushback-taxispeed-control-etc/) I would be highly appreciative 🙂
Basically I'm using your DLL to create macro's for setting flight conditions so having it as an instrument add-on will probably be more useful to other users when I can release it to the public.
Thanks again for your hard work that I'm sure has made FSUIPC interfacing a lot easier for many other folks.