multiple statements?
is it possible in Sikuli to have multiple classes in a single script file?
What I'm trying to do now is basically look for one of a series of images and based on that image execute a command
that part is easy to do but what I'm having trouble doing is the next part
after I have executed the command I would like to look for the remaining images, and if they aren't found just keep looking until one is found and then execute a separate command based on it and so on
what I was trying to do was something like this:
A = imageA
B = imageB
C = imageC
match1 = False
match2 = False
match3 = False
while not match1 or match2 or match3:
if find(imageA):
case = 1
elif find(imageB):
case = 2
elif find(imageC):
case = 3
else continue
if case == 1:
popup("Match 1 found")
match1 = True
if case == 2:
popup("Match 2 found")
match2 = True
if case == 3:
popup("Match 3 found")
match3 = True
while match1:
if find(imageB):
case = 2
elif find(imageC):
case = 3
else continue
while match2:
if find(imageA):
case = 1
elif find(imageC):
case = 3
else continue
while match3:
if find(imageA):
case = 1
elif find(imageB):
case = 2
else continue
I'm also having trouble searching within a region, all of the images appear within a different part of the screen so I was thinking about setting a match as a variable where m1 = (roiImage)
Any idea where I should start looking?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Smythe Winsington for more information if necessary.