Question #163613 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/163613
RaiMan proposed the following answer: Sorry, but it is always a problem to "guess" what might be the behavior of the target application. At least I think you got it with the use of if/elif/else. --- with regards to the spacing / tab issue, I don't understand the why behind what you're saying the why: within one block (e.g. within an if, an else, a while loop, a for loop, ...) the indent must be consistent: if you indent with 8 blanks, it must be 8 blanks throughout the block. This might be transparent for one level, but when it comes to a second, third, n-th level (if's within if's within for's ...) it gets non-transparent and these errors are really hard to find. Therefor from the beginning: use tab/shift-tab. Tip: If you run into problems. that might be based on indentation errors, select the lines, that might be the cause, use shift-tab until the indent is 0 and tab again to the right indent level. --- one more thing: instead of using a for loop or as an additional support, you might think about checking for some other visual objects (exists or observe), that may give you the information, that the status of your app changed. -- 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 : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

