← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #677916]: Script Exception after region highlight

 

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

    Status: Open => Answered

masuo proposed the following answer:
See document.
https://sikulix-2014.readthedocs.io/en/latest/region.html#grouping-method-calls-with-region

If you get strange results or errors in the with block (e.g. syntax error __enter__ is not defined for this region) cast your Region object to a scripting level Region object using
castedRegion = Region(regionNotWorking) and use castedRegion in the with clause or do it like this:

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