Page 1 of 1

Screenshots

Posted: 10 Dec 2017, 01:04
by theoth
Hey,
I was curious if there is any way to make Actiona take a screenshot of a certain area and save it to a certain path,
thanks in advance!

Re: Screenshots

Posted: 10 Dec 2017, 11:11
by francois
Hello,

With code :

Code: Select all

var screenshot_ = Image.takeScreenshot();
var img_rect = screenshot_.copy(new Rect(505,415,50,75));
rc=img_rect.saveToFile("C://temp//img_rect.jpg")
with Rect(left, top, width, height)

for more details, see https://wiki.actiona.tools/doku.php?id=en:code