Sign in to follow this  
Guest mrgoodspeed

Pause and unpause

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

>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

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

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

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