ark1320 Posted September 12, 2022 Report Posted September 12, 2022 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
John Dowson Posted September 18, 2022 Report Posted September 18, 2022 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
ark1320 Posted September 19, 2022 Author Report Posted September 19, 2022 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!
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