← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #169767]: IF image appears FIRST in 1 of the 2 regions

 

Question #169767 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169767

    Status: Answered => Open

Randy is still having a problem:
Sorry again i think my problem is much simpler than it looks, sorry for
the trouble i think i got it to work by this

while True:
   if regA.exists(imgA ):
      print "script for regA"
   if not regA.exists(imgA):
      print "script for regB"
      wait(5)

It seems like the "exists" command on scans it every few seconds i need
it to continually "observe" so as long as the imgA exists script for
regB doesnt run but unsure how to use to observe command when i replace
exists with observe it gives an error "TypeError: observe(): 1st arg
can't be coerced to double"

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.