Re: [Sikuli-driver] [Question #181852]: if statements inside for loop

2011-12-30 Thread surfdork
Question #181852 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/181852 Status: Open = Answered surfdork proposed the following answer: Try a while loop include an image within the click() or exists or whatever action you want to perform. Also I don't see any wait

Re: [Sikuli-driver] [Question #181852]: if statements inside for loop

2011-12-20 Thread RaiMan
Question #181852 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/181852 Status: Solved = Open RaiMan changed the question status: send me your .sikuli as zipped file to my mail at https://launchpad.net /~raimund-hocke -- You received this question notification because you

Re: [Sikuli-driver] [Question #181852]: if statements inside for loop

2011-12-19 Thread KRP
Question #181852 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/181852 Status: Answered = Solved KRP confirmed that the question is solved: Hi Calle thanks for the reply, but the problem here is after the If condition the loop is not running, means the loop ends after

[Sikuli-driver] [Question #181852]: if statements inside for loop

2011-12-14 Thread KRP
New question #181852 on Sikuli: https://answers.launchpad.net/sikuli/+question/181852 When used the if construct inside for loop getting the below error no viable alternative at input 'if' for entry in myListFixed: while exists(Pattern(1322634310829.png).similar(0.90).targetOffset(-2,1),

Re: [Sikuli-driver] [Question #181852]: if statements inside for loop

2011-12-14 Thread Mikeldi Latorre
Question #181852 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/181852 Status: Open = Answered Mikeldi Latorre proposed the following answer: why don't you try to program in more than one line??? You'll have you code much more legible: for entry in myListFixed: while

Re: [Sikuli-driver] [Question #181852]: if statements inside for loop

2011-12-14 Thread Calle Rundgren
Question #181852 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/181852 Calle Rundgren proposed the following answer: You need to indent the code inside the if-statement. Example: if exists(img1.png) click(img1.png) This is the proper way to use if-statements in python.