sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45485
Re: [Question #663216]: Select Region error
Question #663216 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663216
Status: Open => Answered
RaiMan proposed the following answer:
as mentioned:
you have to learn some basic Python.
... and the docs show you how to use selectRegion:
http://sikulix-2014.readthedocs.io/en/latest/screen.html#Screen.selectRegion
correct:
imageMap = Region(1627,856,247,149)
(hope you used the Region select button in the IDE for that ;-)
or
imageMap = selectRegion() # to paint the region at each run
BTW:
click(Pattern("image.png").similar(0.85))
can be
click()
in this case, since you want to click the image, that was already found by
exists(image, 0)
this is a convenience feature (last match)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.