← 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: Answered => Open

cuocdoi is still having a problem:
And one more questions:

in code line:   <  t = t.below(10)  >

the starting point is "pic1.png" --> x = 0 , y = 0 (k = 0)

I'm confusing the value of "below ()" is always 10, so this can lead to the mouse point can move down.
Could you please take a look at your script modified and tell me the difference between your original code and modified code. And which is better ?
 
Base on your scripts:
{code}
def doing_something(t):
    rightClick(t)

t = find ("pic1.png").getCenter() # this is the starting mouse point
i = 10
for k in range(100): # loop 100 times
    doing_something(t)
    t = t.below(i) # next clickpoint is 10 pixel below current
    i = i + 10 # raise the value of "i" to move Mouse point 
{/code}

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