OK.
Now we are on the same level !
We got a Problem..... And YES.... this "would" be solved with a delay.... But thats ( in my opinion) the wrong way.
If your PC get hot in case it stands 10cm near a oven .... then you could install a cooling system with -120° liquid nitrogen..... OR You simply put your Computer away from the oven and all is fine
So we need to check the situation and looking for a better way to handle this.
I think the problem basically occure in case a short momentary press here result in TWO commands and both are LUA Macro Calls.
Here the System we send Macros is "verry" uncomfortable and slow..... But FSUIPC give us no better interface. This is a technic that is 30 years old :-)
You already see..... MF is not the problem.... MF send the "key" command correctly short behind without Problem..... And also FSUIPC itself is not the problem in case it detect the KEY and execute the Macro to "Pull" the button again also short behind..... The "bottleneck" Point is the Interface that is offert from FSUIPC to MF for fire the Macros.... And that not allow us to do 2 fast behind !
Now what we can do here.....
1. You can confirm..... If you use 2 Lua Macro Calls ( One on Press, and One on release) But you press the button "a little" slower.... Then it already should work.
I mean PRESS.... Hold for 0,2 to 0,5 seconds .... And then Release. If my idea is correct, this should show us, if it´s already work.
2. If it work..... You can try NOW if a INCREASE of the FSUIPC Poll Rate helps..... May it´s enough to solve this.... But i don´t think so.
3. Think about the LUA Stuff.
I know in older Systems (P3D) there is a big problem in Case lots of AddOns ( Except the real professionals) use these Lvar Stuff So in the Past we was forced to use these "unpracticable" LUA Macros.
In FS2020 we no longer need this..... And hopefully we can also implement this new technique into P3D in the "far" Future!
Till then ( for this situation) i would think about a LUA Solution
( Yeah i know you not like it .... But you still need to use these Macros.... So why not pimp them a bit)
Basically your idea is not profitable here....
You send a Macro that PRESS the Virtual Button ..... And you send another Macro to RELEASE the Virtual Button....
Much more logical is to "Combine" the two actions in the First Macro!
You not need a Situation to Push and Hold..... So Everytime it should also get released directly behind and can get combined !
I NOT know the syntax..... But pretty sure you can use "multiple" commands within one Macro.... So no longer work with the 1 / 0 Parameter in MF.....
Simply fire ONE Macro on Press..... And The Macro then include 2 Lines.... One for Press(13) and one for Release (3)
Maybe it still workes..... If it again struggle then we include a delay INSIDE this macro.... So Macro send 13 ... Wait 200ms and then send 3.
Important is..... MF is not effected by this delay.... It start the macro and no longer care about the delay inside it!
**************************
Summary:
I hope you understand.... Usage of Delays is basically not needed in MF .... You still confirm with the Key that MF not struggle! . The usage of 2 Macros with a momentary Button is NOT normal and only in case you not combine the full action within ONE Macro already!
And sure.... Its only need in case FSUIPC not give us a more modern way!
If you need help here..... Or you want to talk about that system..... Meet me on Discord ( with headset ).... Then we make a voice seasson with a cold beer :-)