with Region non working properly
Asked by
Danielo
I'm wondering why this code does not work:
CenterScreen = Region(
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.