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. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp