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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to