← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #226284]: Rectangle With and lenght must be >0

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Since I cannot find the source of the message creation: are you running
an older version of Sikuli?

--- only to see if this changes the things:
You might try, to use setROI(self.app.window()) instead of with:
This brings your code from the with-block back to indent level 0.
Be aware: you have to reset the ROI if you do not need it any longer: setROI(SCREEN)

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