mikemc751 Posted November 24, 2018 Report Posted November 24, 2018 Hi Paul Apologies if this has been asked before. I'm just wondering if the MenuSelected event handler in FSUIPCConnection.UserInputServices can detect a user selection of an in-built P3D menu item (rather than one that we have created ourselves). For example, I would like to detect if the user has selected Scenario-Reset, so I can reset my App timer. I am using WPF C#. Thanks for the DLL - it is fantastic. Regards Michael
Paul Henty Posted November 24, 2018 Report Posted November 24, 2018 Hi Michael, Unfortunately that FSUIPC facility only works with user-added menus, not the built-in ones. FSUIPC can tell you if the user is using the menus or a resulting dialog (see 0x3365) but not which one. If you just want to detect the reload then try offset 0x3F02 (ushort). This is a counter that increments each time a flight is loaded or reloaded. The reset might just re-load the same flight and increment this counter. Another idea is that your application could offset a reset-flight option that just sends the appropriate control to P3D (try SITUATION RESET 65591). But at least you know when it happened. It might also be worth asking Pete (in the main forum) if he has any ideas. Paul
mikemc751 Posted November 25, 2018 Author Report Posted November 25, 2018 Hi Paul Many thanks for your reply. I had not spotted that offset. I think that will suffice for my needs for now anyway. I'll ask Pete if I need to go further into it. Regards Michael
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now