Question #175353 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/175353
Status: Open => Answered
RaiMan proposed the following answer:
img = "some-image.png" # the image to find
pos = Location(x, y) # a location inside the scrollable window
steps = 1 # to be adjusted to your needs
max = 100 # to be adjusted to your needs
found = None
while max > 0:
wheel(pos, WHEEL_DOWN, steps)
max -= steps
if exists(img, 0):
found = getLastMatch()
break
if not found: print "not found"; exit(1)
click(found) # as an example
--
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 : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp