This are the (new) 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, and are still available (until the end of the year) for read-only here.

At the moment these new forums are quite empty – I will be updating the FAQ section and copying across the User Contributions from the old forums in the next few months.

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

Can somebody please…
 
Notifications
Clear all

[Solved] Can somebody please fix this lua

Posts: 17
Registered
Topic starter
(@dreamflight767)
Joined: 1 month ago

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!


27 Replies
Posts: 173
Moderator
(@fsuipc-support)
Joined: 3 months ago

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


Reply
Posts: 173
Moderator
(@fsuipc-support)
Joined: 3 months ago

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


Reply
Posts: 17
Registered
Topic starter
(@dreamflight767)
Joined: 1 month ago

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!


Reply
Posts: 113
Admin
(@fsuipc)
Joined: 6 months ago

Posted by: @dreamflight767

I 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: @dreamflight767

Sometimes 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: @dreamflight767

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. 

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


Reply
1 Reply
Registered
(@dreamflight767)
Joined: 1 month ago

Posts: 17

@fsuipc 

 

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


Reply
Page 1 / 5