Repeat Variable_Times - what am I doing wrong?

I am trying to create a macro that would repeat X times, but each loop be delayed until I press "N" key.
It only runs one time - where is my mistake?

Repeat action x times.kmmacros (3.1 KB)

I believe what's happening is that KM is incredibly fast—it sees your one press of N three times, because the loop you have executes in a portion of a microsecond.

Add a 0.5 second pause after the text display, and it will work; at least, it did here in testing. This gives you time to take your finger off the 'n' key before the macro checks to see if it's down again.

-rob.

1 Like

What @griffman said. And so as not to be just a "me too!" kind of guy -- another way round the problem is to add another pause, after your "Display Text" action, that waits until the N key is up.

2 Likes

Thank you! It works.