Jump to content
The simFlight Network Forums

Set Future Pause for MSFS or P3D


ark1320

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.

This script uses the wnd (Window ) library for display, so you can move the display window with the arrow keys and use the ctrl + arrow keys to resize the window. The window must have the focus to do this. The new window display position will be stored in your FSUIPC .ini file. As an alternative to using the arrow keys you can directly edit the window position and size coordinates in the FSUIPC7.ini file. Look for the entry under [ExtWindow].  It seems best to do this when FSUIPC7 is not running. You may also have to edit the window size and position in the lua file.

The script requires a registered copy of FSUIPC. If using MSFS, at least FSUIPC7 version 7.0.4 is required, or at least FSUIPC6 version 6.0.12 for P3D.

Al

 

SetPauseMSFS&P3D.lua

Link to comment
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 comment
Share on other sites

  • 1 month later...

I tried this script today, and when I activate it, I just get a flash of a white rectangle (which I guess is the outline of what was supposed to be a text box/prompt). I dont get anything to enter the time till pause. I guess this lua doesn't work anymore?

 

Is there an alternative? I would really like a pause at tod or pause x nm from destination function. 

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
9 hours ago, Heisenberg1979 said:

Is there a way to move the window position ?

It uses the wnd library, so you can use the arrow keys to move the window and the ctrl + arrow keys to resize. Give focus to the window first. The position will be remembered, i.e. stored in your FSUIPC .ini file. You can also directly edit the position and size coordinates in the .ini file if you like, but only when the window isn't being displayed.

Link to comment
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
×
×
  • 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.