Jump to content
The simFlight Network Forums

Set Future Pause for MSFS or P3D


Recommended Posts

The SetPauseMSFS&P3D.lua script attached below makes use of the FSUIPC Lua event and wnd libraries (as suggested by John Dowson) and can be used to pause MSFS or P3Dv4.5/v5.1 from 1 minute to days after the script is run. When run, the script asks for a pause time and if none if provided within two minutes the script closes with a brief message. If a pause time is entered, for example 260 minutes until a Top of Descent, the user would see

image.png.70d7b4fa6f5e1eead8d34f49efca651c.png

Then after hitting the Enter key the display would change to

image.png.a8b2eff3bf5ae4c494f9756a325b12c1.png

This display will change once per minute as the time to pause counts down towards zero.

If the user decides to cancel the pending (future) pause with the Enter key, the display briefly changes to

image.png.663360d257147ae6669ecbd9bfefea8b.png

 

When the pause time is reached, the sim pauses and looks just like a pause had been initiated with the ESC key.  To cancel a paused sim you just need to click on Resume, or push ESC.

The ESC in MSFS and P3D works as a toggle pause key. So if you were to set a future pause time with this script, and then pause the sim ‘manually’ by pushing the ESC key, when the time until pause reached zero, it would unpause the sim. While kind of interesting, I’m not sure what the utility of this is!  🙂

If using MSFS this script requires at least FSUIPC version 7.0.4, or at least FSUIPC version 6.0.12 for P3D.

Al

 

SetPauseMSFS&P3D.lua

Link to post
Share on other sites
  • 4 weeks later...
  • 3 weeks later...
On 3/19/2021 at 7:31 AM, grigna said:

Very interesting, but how implement it?

Does it have to be associated with a button?

 

Hi,

Just saw your question here-- sorry I didn't notice it sooner. You need to put the Lua script in the same location as your FSUIPC.ini file, and then use FSUIPC to assign either a keyboard key or button to activate (call) the script.

Al

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • 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.