Skip to main content

Hello,

 

I want to screenshot the current window in a error handle. For each error I want to name the pictures like this:

Picture1.png

Picture2.png

Picture3.png

Picture4.png

and so on.

For every screenshot that bot takes, I want to add it automatically the numbers 1, 2,3, 4, depending on the number of pictures in the folder.

Hello @ANA ILIESCU​ 

I believe there are many ways to achieve this. You can create a number variable that goes increasing for every scheenshot that exists in your folder, convert number to string, and then use it when naming the screenshot. Something like this

 

CaptureLines:

  1. Loop through a folder with the screenshots
  2. if the file extension is png
  3. increase the number variable
  4. Outside the loop add 1 (in this example I had 16 png files in my folder)myfilesplusone
  5. Convert number to string
  6. Save the screenshoot with the Counter_STR (string variable) pathScreenshot

 

Hope it helps!


Thank you @Mikaela Machado​ . It's very helpful for me.


Reply