Jump to content

Problem with _ScreenCapture_Capture


Recommended Posts

Hello

I'm using this:

_ScreenCapture_Capture(@MyDocumentsDir & "\Images\file.jpg", 325, 278, 955, 689)

Well, it's working, I can save the screenshot, but when I try to save the second screenshot using the same command, it overwrites the first screen and save the second.

I want something like this:

_ScreenCapture_Capture(@MyDocumentsDir & "\Images\file_X.jpg", 325, 278, 955, 689)

the _X, will change to _1, _2, and so on.

Can someone help me? Thx :unsure:

Link to comment
Share on other sites

User a variable and increase the value!

Example:

...
$i = 0
...
_ScreenCapture_Capture(@MyDocumentsDir & "\Images\file_" & $i & ".jpg", 325, 278, 955, 689)
$i += 1
...

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...