← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #234584]: How to action for sequence of vertical pictures lined up

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is better Python code and should work (supposing the vertical
distance between the image centers is 10 pixel)


def doing_something(t):
    rightClick(t)

t = find ("pic1.png") # this is the starting mouse point

for k in range(100): # loop 100 times
    doing_something(t)
    t = t.below(10) # next clickpoint is 10 pixel below current

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