Question #292358 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/292358
Status: Answered => Open
Robert is still having a problem:
Tried to figure out your recommendations early today using a test setup.
I couldn't get it to work. I emailed a screenshot of my sikuli script to
the email you provided.
Questions regarding your code recommendation:
def checkLetter(reg): ----------------[am I linking an actual image of the
region here, or typing 'reg'?]
if reg.exists(imgA, 0): return "A" --------------[am I typing imgA or
actually linking the image of the 'A' symbol?]
elif reg.exists(imgS, 0): return "S" ---------------[same question as above.]
elif reg.exists(imgW, 0): return "W"---------------[same question as above.]
elif reg.exists(imgD, 0): return "D"-------------[same question as above.]
return None ----------------[What is this return doing? Is this saying
'Else, if nothing is returned, don't do anything.'?]
for reg in (reg1, reg2, reg3, reg4, reg5): ------------------[am I linking an
actual image of the 5 region's here, or typing 'reg1'?]
letter = checkLetter(reg) ---------------[In the first part of the code, we
define the parameter of checkLetter, I'm confusing why we're not correlating
this variable with 'letter'? Can't we just call upon checkLetter now that its
defined? Or am I misunderstanding what is happening here?]
if not letter:
print "error checkLetter:", reg
exit(1)
# here you can type the letter ------------------[Not sure what you mean in
this comment.]
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp