Sign in to follow this  
Followers 0
Svolpato

Problem with _ScreenCapture_Capture

5 posts in this topic

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:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

As you can see $i is very populare. :unsure:

Br,

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

UEZ and wakillon,

thank you ^^

worked well :unsure:

bye

Share this post


Link to post
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
Sign in to follow this  
Followers 0