Set the variable value, repeat the number of +1, and update the variable.
It is very difficult for me. Is anyone willing to help me?
I need to repeat the action "Type the Right arrow Keystroke" up to 20 times.
The usage scenario is like this. There are a lot of videos in the folder that need to be uploaded to the website. You can only locate the first video each time you upload. I want to use Keyboard Maestro to select video uploads automatically.
I'm not sure I understand your video uploading workflow, but assuming this is the best/only way to accomplish this task, here's an example macro that will prompt you for a folder, then type the right arrow key for as many files as are in that folder automatically:
You're welcome. Glad to hear it solved your problem. However, in the interest of optimization, I realized after I uploaded that macro that it was a little redundant, and it could be made to work just as well without the VideoCount variable:
I keep coming across this solution that I would like to implement. I have KM ask for user input and set it to a variable.
Then I try to put that variable into a repeat loop, but the sample on this forum indicate the number in repeat can be replaced with the variable. My KM throws an error when I do that.
Also, my KM Repeat Actions icon is different than the one in these samples on the forum.
if you actually run it does it work?
The Repeat Actions says "Currently invalid" this most likely means that the variable doesn't exist yet. When you run the macro, the prompt will create the variable and the repeat will then work correctly.
Since you're using a global macro once executed once the variable will exist from then on and the message should go away.