Posts: 14
Threads: 6
Joined: Jun 2019
05-22-2021, 05:55 AM
Hi. I'm using CaptureImageOnScreen to take a screenshot it works pretty well but the coordinates and image size are fixed. who knows how to choose the area and size you want to capture like capture in find image and save that file to bmp file. thanks for reading
Posts: 1,337
Threads: 61
Joined: Jul 2006
use CaptureImageOrColor
mkdir "Captured_Images" "$My QM$";;create folder if it doesnt exist
str fBmp.timeformat("$my qm$\Captured_Images\{yyyy-MM-dd}_{HH-mm-ss}captured.bmp");;unique filename with date and time to avoid problems
fBmp.expandpath
if(!CaptureImageOrColor(0 0 _hwndqm fBmp)) ret
Posts: 14
Threads: 6
Joined: Jun 2019
its work thank you very much.