← 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

RaiMan proposed the following answer:
ok, we crossed each other ;-)

t is not a constant value: it gets a new value (as you can see above)
with every loop turn.

--- To give you more stuff, to think about ;-)

the range() function can do a lot more, so we could increment this way:

stepOffset = 10
steps = 100
for offset in range(0, steps * stepOffset, stepOffset):
     doing_something(t.below(offset))

now t remains constant (the center of pic_1), offset is increased every
loop turn by 10 (stepOffset) and this is done steps times.

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