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

Hi all,

 I'm using Sikuli IDE and encounter a problem for doing something in vertical 
pictures. 

Here are my steps and desired results:

- Having 100 different pictures (pic1, pic2,....pic100) lined up vertically.
- Actions:
1. right_click pic1 and doing something....., then
2. right_click pic2 and doing something...., then
.......
100. right_click pic100 and doing something... --> finish

Here is my code:
{code}
def doing_something ()
rightClick

t = find ("pic1.png")
k=0
x = 0 # define the starting mouse point

while (k<101): # loop 100 times
    def soing_something()
    k=k+1
    l = t.below (x+10) # move the mouse below pic1 to 10 units  
{/code}

But I can action for pic1, pic2, pic3... when k = 4, the click is always on 
pic3 not pic4,5,6......

Could you tell me how to do it by sikuli IDE, please ?

Thanks in advance.
cuocdoi

-- 
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     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to