Jump to content
The simFlight Network Forums

Couple of Macro Questions


ark1320

Recommended Posts

Q1.  Is there a way to insert a timed delay into a multi-line macro? I thinking of something like using ipc.sleep() in a Lua script. So you might have:

[Macros]

1= Name
1.1=action1
1.2=action2  ;a delay
1.3=action3

Q2. In the Advanced users guide in reference to a multi-line Lvar macro it says, "However, unlike the usual multi-line macros, those using an L:Var cannot be mixed with any other parameter types or other L:Vars".
I take this to mean that the multi-line Lvar macro can only take different actions with the same Lvar, e.g, you could set the Lvar in one line, and then maybe Inc that value in the next, and then maybe toggle the lvar, etc. So all (any) actions have to be on the same Lvar. Or do I misunderstand the line from the Advanced users guide?

Thanks,

Al

Link to comment
Share on other sites

On 9/12/2022 at 2:31 AM, ark1320 said:

Q1.  Is there a way to insert a timed delay into a multi-line macro? I thinking of something like using ipc.sleep() in a Lua script. So you might have:

Yes - there is an FSUIPC-added control that you can use for this - from the Advanced User guide, P29:
   

1152 Pause (ms) – this adds a delay in ms. It can be used to insert a delay between key press/releases and mouse
operations (where needed)

 

On 9/12/2022 at 2:31 AM, ark1320 said:

I take this to mean that the multi-line Lvar macro can only take different actions with the same Lvar, e.g, you could set the Lvar in one line, and then maybe Inc that value in the next, and then maybe toggle the lvar, etc. So all (any) actions have to be on the same Lvar. Or do I misunderstand the line from the Advanced users guide?

Yes, this is correct.

John

Link to comment
Share on other sites

 

15 hours ago, John Dowson said:

Yes - there is an FSUIPC-added control that you can use for this - from the Advanced User guide, P29:

1152 Pause (ms) – this adds a delay in ms. It can be used to insert a delay between key press/releases and mouse
operations (where needed)

Great -- thanks very much!

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.