While loop does not execute

Asked by Hitesh

The following code in sikuli gets skipped. Please suggest the fix.

n = 0
while not exists("1382400847623.png"):
    popup("Cycle: ", n)
    popup("Still Removing the Extender")
    sleep(5)
    popup("checking again")
    n = n+1

Sikuli 1.0.1 on Windows 2008 64 bit

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I guess, something similar is found on the screen.

So optimize the image (as little background as possible) and/or raise similarity

while not exists(Pattern("1382400847623.png").similar(0.9)):

Can you help with this problem?

Provide an answer of your own, or ask Hitesh for more information if necessary.

To post a message you must log in.