ark1320 Posted January 9, 2021 Report Posted January 9, 2021 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 Then after hitting the Enter key the display would change to 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 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
grigna Posted March 19, 2021 Report Posted March 19, 2021 Very interesting, but how implement it? Does it have to be associated with a button?
ark1320 Posted April 9, 2021 Author Report Posted April 9, 2021 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
Andreas Stangenes Posted May 29, 2021 Report Posted May 29, 2021 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.
Andreas Stangenes Posted May 29, 2021 Report Posted May 29, 2021 Nevermind, I just needed to update my FSUIPC to the latest version. It works like a charm now :)
Q4simdred Posted June 20, 2021 Report Posted June 20, 2021 Hello! Those this plugin work with the free FSUIPC version?
John Dowson Posted June 21, 2021 Report Posted June 21, 2021 14 hours ago, Q4simdred said: Hello! Those this plugin work with the free FSUIPC version? No, as the lua interface is only available in the licensed versions of FSUIPC.
Heisenberg1979 Posted August 8, 2021 Report Posted August 8, 2021 Hi, thx for this script. Is there a way to move the window position ?
John Dowson Posted August 8, 2021 Report Posted August 8, 2021 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now