← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #141004]: Does With region really works?

 

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

RaiMan proposed the following answer:
a possible temporary solution is using

reg=Region(0,0,800,200)
#with reg:
setROI(reg) # these 2 statements temporarily simulate the with
if True:
   highlight(2)

If needed you might have to reset the ROI
setROI(getBounds())

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