Jump to content
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

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...