sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36134
Re: [Question #279591]: Bot for multiple choice quiz
Question #279591 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/279591
Abu Sadek gave more information on the question:
Progress so far..................
photoArea = Region(Region(1000,372,214,243))
nameArea = Region(Region(528,371,241,242))
footballers = {
'xabi':"1450363840859-1.png",
'chivu':"1450364273740.png",
'diego':"1450364038327.png",
}
boxes = {
'xabi':Pattern("1450363969156-1.png").exact(),
'chivu':Pattern("1450364291974.png").exact(),
'diego':Pattern("1450364052508.png").exact(),
}
for name, image in footballers.items():
if photoArea.exists(image):
footballer = name
print footballer
for name, image in boxes.items():
if nameArea.exists(image):
button = image
box = name
footballer = box
print box
nameArea.click(button)
-----------------------------------------------------------------
I need advice on a couple of thing
1) streamlining the code (if possible) to make it quicker
2) looping this as this only does one selection and stops
any advice will be appreciated.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.