← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #142149]: [Python] How to edit str(Region) e.g. Region[252, 120 150x25]@Screen(0) E:Y, T:3.0

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I do not really understand.

supposing r1str1 contains the string:
r1=region(252,120,150,25)

then saying 
exec(r1str1)

should result in r1 being a "real" Region object.

so:
r1str1 = "r1=region(252,120,150,25)"
exec(r1str1)
print r1

should print:
Region[252,120 150x25]@Screen(0) E:Y, T:3.0

so you have your variable r1 being a region in your current context.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.