Jump to content
Sign in to follow this  
Guest mrgoodspeed

Pause and unpause

Recommended Posts

Guest mrgoodspeed

Is it possible to use SimConnect to pause and unpause the simulation, and if so how?

Share this post


Link to post
Share on other sites

>Is it possible to use SimConnect to pause and unpause the>simulation, and if so how?>>You can send the events below to do so.KEY_PAUSE_ON PAUSE_ON Turns pause onKEY_PAUSE_OFF PAUSE_OFF Turns pause offusing SimConnect_TransmitClientEvent and SimConnect_MapClientEventToSimEvent.

Share this post


Link to post
Share on other sites
Guest mrgoodspeed

Thanks very much, that works nicely. ( I didn't make the connection from the SDK docs).MRG

Share this post


Link to post
Share on other sites

>Thanks very much, that works nicely. >( I didn't make the connection from the SDK docs).>>MRGThere's a number of events that you may not expect to be there. I've found quite a few things that I didn't think I'd have access to.

Share this post


Link to post
Share on other sites
Guest mrgoodspeed

What about the full screen toggle + ?Although there may be a better way to achieve what I want to do - see other thread.MRG

Share this post


Link to post
Share on other sites
Guest kranky22

>>Is it possible to use SimConnect to pause and unpause the>>simulation, and if so how?>>>>>>>You can send the events below to do so.>KEY_PAUSE_ON PAUSE_ON Turns pause on>KEY_PAUSE_OFF PAUSE_OFF Turns pause off>>using SimConnect_TransmitClientEvent and>SimConnect_MapClientEventToSimEvent.>>I am just having problems with these event ID's. I have done similar events such as Toggle Slew mode, and numerous others. HOwever, I cannot get the PAUSE_TOGGLE, SOUND_TOGGLE, PAUSE_ON, PAUSE_OFF to work. I have tried several things, but this is currently what I have using C#. Can anyone maybe help? Also, what do the numbers 1 and 0 do for the transmitclientevent command?bool Pause = false;enum EVENT_ID { EVENT_KEY_PAUSE_ON, EVENT_KEY_PAUSE_OFF, }simconnect.MapClientEventToSimEvent(EVENT_ID.EVENT_KEY_PAUSE_ON, "PAUSE_ON"); simconnect.MapClientEventToSimEvent(EVENT_ID.EVENT_KEY_PAUSE_OFF, "PAUSE_OFF");private void Pausebutton_Click(object sender, EventArgs e) { if (Pause == false) { simconnect.TransmitClientEvent(1, EVENT_ID.EVENT_KEY_PAUSE_ON, 1, GROUP_ID.GROUP_0, SIMCONNECT_EVENT_FLAG.DEFAULT); Pause = true; } else { simconnect.TransmitClientEvent(1, EVENT_ID.EVENT_KEY_PAUSE_OFF, 1, GROUP_ID.GROUP_0, SIMCONNECT_EVENT_FLAG.DEFAULT); Pause = false; } }

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...