Sign in to follow this  
richbarry

How to pass an event back to FSX after masking it without getting immediate re-trigger?

Recommended Posts

Hello

 

Can anyone help me with how to get FSX to process an event that you have masked after you've done what you wanted to do first.

 

e.g. I'm trapping the NextSubView, in order to do some other things first, but when I subsequently  do this

 

fsx_simconnect.TransmitClientEvent(DEFINITIONS.Struct1, EVENT_ID.EVENT_NextSubView, 0, hSimconnect.Group1, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY)

 

it re-triggers the event again so I just go around in circles.

The work around I'm using is to remove the event from the notification group, trigger the NextSubView, then add the event back to the group.

 

Is there a tidier way? I'm sure a lot of Simconnect projects want to do something with events before allowing FSX to process them in the usual manner, so it hardly seems like what I want to do is abnormal.

 

Thanks for any help

 

Richard

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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
Sign in to follow this