Question #268175 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268175

    Status: Open => Answered

RaiMan proposed the following answer:
just for the records (nothing to do with your problem)

makes no sense:
Pattern(Pattern("02_right-1.png").similar(0.75))

this is enough:
Pattern("02_right-1.png").similar(0.75)

the version in comment #5 is the preferable one -- using exists(…, 0)

If your stuff is in a window, that probably not always is in the same
place, then you should not work with absolute regions.

in a first step find something, that is always visible in the window.
then measure the offset to the place of the images.
then define regions, that contain the images and use them with exists.

ref = find(someStaticVisual)
offsetR = (x, y) # to be evaluated (topleft to topleft)
offsetL = (x, y) # to be evaluated
regRight = ref.offset(offsetR).setSize(44,228)

while True:
    while True:
        if regRight.exists(Pattern(Pattern("02_right-1.png").similar(0.75)),0):

BTW: are you simulating some scrolling?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to