Repeat - Write system

Hallo

How can I transfer the variable from Repeat to the Write system clipboard command?

Thanks for your support

Götz

Bildschirmfoto 2024-12-07 um 22.42.48

I'm not really sure what you are wanting to do - but I'm guessing that if the repeat is set to happen a few times you want the Variable that you've indicated as %Times% to to increase by 1 on each file saved? So, Information_1.jpg information_2.jpg etc?

You can set a Variable with an initial value of 0 before the loop and increase that Variable by 1 on each run of the loop. Use this Variable as the part that numbers the file name. Here is an example macro. The two green Actions are placeholders to show how the filename changes.

EXAMPLE Counter.kmmacros (4.4 KB)

@Zabobon's shown you one method, based on your original macro.

You could also use a "While" loop:

Sequential Captures.kmmacros (5.0 KB)

Image

1 Like

And, of course, the KM-optimal method is probably a "For Each" action:

Sequential Captures For Each Version.kmmacros (4.4 KB)

Image

1 Like

Thank you for your hep