This are the Support Forums for FSUIPC and related products.
These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.
Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.
Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE
[Solved] Can somebody please fix this lua
Hello:
There is this great lua to have the FS2020 pause after a designated (entered)
amount of time but I can no longer get it to work. Would somebody please be able to review it and update it. Thanks much!
That script is a user contribution available from here
https://fsuipc.com/community/user-contributions-user-contributions/set-future-pause-for-msfs-or-p3d/
If the script is not working, can you please post in that topic where the script is available, and please explain what the issue is, i.e. what exactly is not working?
If you do that, I will take a look and respond there.
John
I just tried the script and it seems to work as advertised. However, note that MSFS2020 must have the keyboard focus for it to receive the escape key and pause. Could it be that the FS just didn't have the focus?
You can change the script to explicitly give it the focus, by changing line 10 from this:
ipc.keypress(27) -- pause sim
to this:
ipc.keypressplus(27, 0, 12) -- pause sim
That will then ensure that the FS has the focus before the escape key is sent.
If that is not your issue, please provide more details, and better to use the topic where the script is available so that others who use / download this script can see the discussion there.
Regards,
John
Hi John:
Thank you. I found this in the old forum so I'm not sure how to post in there anymore.
Sometimes the lua won't display at all when I enter my key command (tab+p). Sometimes, the lua comes up, but I can't enter any numbers into it. Sometimes, it comes up, I can enter numbers but when I hit "enter" on my keyboard, it won't accept.
Thanks much!
Posted by: @dreamflight767I found this in the old forum so I’m not sure how to post in there anymore.
It is also in the new forums - I gave you the link in my first reply. The old forums are closed and will soon be removed - don't post there.
Posted by: @dreamflight767Sometimes the lua won’t display at all when I enter my key command (tab+p).
For this, I need to see your FSUIPC7.ini and FSUIPC7.log files, the latter with logging for Buttons & Keys activated, and showing your issue.
Posted by: @dreamflight767Sometimes, the lua comes up, but I can’t enter any numbers into it. Sometimes, it comes up, I can enter numbers but when I hit “enter” on my keyboard, it won’t accept.
For this, you need to activate logging for Lua Plugins and Buttons & Keys show me a log file generated when this issue occurs.
But, as I said, I tested the lua here and it works fine.
John
Hi. Is this what need? After I made the changes as you suggested, it worked. But the next time I loaded the sim, nothing.
Thanks
