sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #59608
Re: [Question #820856]: How to define a region by screenshot?
Question #820856 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/820856
Richard posted a new comment:
The issue is that Region("1738863287150.png") is incorrect because Region() expects coordinates, not an image file. To define a region using a screenshot, first, find the image on the screen with:
region = find("1738863287150.png")
result = region.find("another_image.png")
region = Region(x, y, width, height)
But make ensure image exists in same directory
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.