Question #706490 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/706490

    Status: Open => Answered

RaiMan proposed the following answer:
This is currently not a feature, but I like the idea and put on the list
(low priority - so it will not help you).

A manual approach like yours can be done directly in the main script:

add a line
reg1 = <cursor>
and capture the region around the image (need not be exact, better a few pixel 
larger on each side)

the line will then be
reg1 = <region-thumbnail>

add a next line
img1 = <cursor>
and capture the image (be exact, so the image is inside the region captured 
before)

the line will then be
img1 = "img1.png" as thumbnail

now you can use both variables as you like.

if reg1.has(img1):
   # some code

One more thing:
For both aspects (performance and being sure image is in its place) the region 
can be 10 to 20 pixels larger on each side without any effect on both aspects.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to