looking for several pictures and return value
Asked by
Kurt Zalkowitz
Hi,
For some time I am trying to implement a function to check for pictures in a region and return a value. At first I used this:
def chkpic():
if exists(
return 1
elif exists(
return 2
elif exists(
return 3
Did not work. Then I tried this and it did not work either:
def chkpic():
if find ("img1".exact()):
return 1
elif find("img2"
return 2
elif find("img2"
return 3
The function is triggered by another function were some seconds are waited for the images to appear and then this functions is called but it doesn't work.
best KZ
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Kurt Zalkowitz
- Solved:
- Last query:
- Last reply:
To post a message you must log in.