Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.