mrcmrc
April 19, 2015, 1:43pm
#1
Hi all,
I’m pretty new to Keyboard Maestro and need some help.
I wish to loop a set of action until a condition is met.
I begin asking for a number ‘Prompt for User Input’ that put that number in a variable (say ‘total_pass’).
How that loop my actions using that variable?
Thanks!
Hi
You can look here to find what you need:
The numeric field in the Repeat loop, like pretty much all numeric fields in Keyboard Maestro, can contain an expression, which can also include variables or functions. Here is an example showing how you can repeat a variable number of times.
[image]
Note that "Count" in the Repeat action will show up in red until it has a valid numeric value (usually when you run the macro the first time and enter the value in the Prompt. You can select the Prompt For User Input action, and click the Try bu…
2 Likes
mrcmrc
April 19, 2015, 6:01pm
#3
Thanks Jimmy, is just what I was looking for!
Best,
— Marco.