sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38487
[Question #295114]: with Region non working properly
New question #295114 on Sikuli:
https://answers.launchpad.net/sikuli/+question/295114
I'm wondering why this code does not work:
CenterScreen = Region(423,178,1165,377)
def findInRegion():
with CenterScreen:
if exists(barras[1]) or exists(barras[1]) :
return getLastMatch()
return False
Instead of using the specified region it uses the implicit SCREEN region.
In my experience the with clause has never worked fine.
Regards
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.