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

1) Sikuli IDE 1.0rc3(r905)
2) Windows XP (5.1.2600) 32 bit, Java 1.7.0_01
3) Example of affected code (example_file.py):

for row in input_table:
 CPregion.type(Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+row+Key.F8)

 if CPregion.exists(Pattern("1330069906203.png").similar(0.96)):
            CPregion.click(Pattern("1330069906203.png").similar(0.90))
            CPregion.type('polska'+Key.F8+Key.ENTER)
            CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
        else:
            CPregion.click(Pattern("POI-2.png").similar(0.80))
            CPregion.type('POLSKA'+Key.F8+Key.ENTER)
            CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))

Line containing "else" is affected. In source file there are two tabs but in 
IDE i have to put three, that is is very confusing. I think screenshot would be 
better explanation, so Im sending the same part of code in IDE. In case "else" 
clause is on "if" level, IDE produces py code that does not work correctly.

-- 
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

Reply via email to