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

cuocdoi is still having a problem:
One last question before closing as the resolved.

Could you analysis my script

{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.below(i) # next clickpoint is 10 pixel below current
    i = i + 10 # raise the value of "i" to move Mouse point
{/code}

Does it have problem? because the variable "i" increase every loop turn
by 10, and then the new value of "i" will be granted to t.below(i), then
the click point will move to new position (assume starting point: x = 35
and y = 35 as your example, next postion: x=35, y =45) - Is my think
correct ? or aren't suitable to ?

Thanks,
cuocdoi

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