← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #687415]: Strange problem or a bug in Sikuli

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- The names used in this piece of code are unique and only used in
these few lines

not really true: time_left_i

Surely not a SikuliX problem, but a coding flaw.

Make a new def: (I prefer camelCase over camel_case)

def getTimeLeft(reg):
    return reg.text().split(" ")

and use this one:
time_left_i = getTimeLeft(Region(260,692,89,29))
print ("Time left i = ",time_left_i)

or completely get rid of the def:
time_left_i = Region(260,692,89,29).text().split(" ")
print ("Time left i = ",time_left_i)

if either of those works, you have to go back and check your coding.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.