Screenshots

Post here if you need help using Actiona
Post Reply
theoth
Posts: 6
Joined: 10 Dec 2017, 01:00

Screenshots

Post 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!
francois
Posts: 456
Joined: 18 Oct 2010, 10:33
Location: France

Re: Screenshots

Post 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
Post Reply