Sign in to follow this  
Followers 0
Hidix17

Screenshot content to variable

14 posts in this topic

#1 ·  Posted (edited)

Is it possible to take and read a screenshot without saving it into file?

I want to make as fast as possible.

Edited by Hidix17

CVlOH5y.png

Share this post


Link to post
Share on other sites



Not sure what you mean by "read" the screenshot, but you can simply do a Send("{PRINTSCREEN}") to send it to the clipboard.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Oh thanks ,I forgot about this. Actually my script time is 63 ms using jpg format. I will try this


CVlOH5y.png

Share this post


Link to post
Share on other sites

Nope, it is not possible to get it form clip board for me :-(


CVlOH5y.png

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Leave the filename empty, e.g.:

$hGDIBitmap = _ScreenCapture_Capture("", 0, 0, 199, 199)
This will capture the screen and save the raw bitmap in the memory. The return value is the handle to the GDI bitmap! 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

Give me an example, I have never used it.


CVlOH5y.png

Share this post


Link to post
Share on other sites

The idea was to don't save the screenshot on hard disc but in the ram memory to make is faster but still easy to read and send via tcp


CVlOH5y.png

Share this post


Link to post
Share on other sites

Yes ,I used it and I found nothing -_-


CVlOH5y.png

Share this post


Link to post
Share on other sites

The idea was to don't save the screenshot on hard disc but in the ram memory to make is faster but still easy to read and send via tcp


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

That's what I wanted to do. Unfortunately I gives an error in your server script. Line 40. Can not redeclare a constant.


CVlOH5y.png

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

I was written with an older AutoIt version.

Just remove this line and it should work.

Further, Load_BMP_From_Mem and _GDIPlus_BitmapCreateDIBFromBitmap were integrated meanwhile -> _GDIPlus_BitmapCreateFromMemory() is now the function!

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

Ok, thanks for all. I will try to do it and I hope it will works good.


CVlOH5y.png

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