← Back to team overview

sikuli-driver team mailing list archive

[Question #672641]: Sikulix 1.1.3 exist() ignores region

 

New question #672641 on Sikuli:
https://answers.launchpad.net/sikuli/+question/672641

My issue is that r.exists() seems to ignore the region I've given it I've had this happen to me in multiple games so far but I'm going to use the most basic one to make it easier to possible try and fix.

My code:
l = Region(1009,579,116,51)

r = Region(1223,576,109,53)

while True:

        if l.exists("1535015573308.png", 0):
            type(Key.RIGHT)
        else:
            type(Key.LEFT)

        if r.exists (Pattern("1535015633109.png").similar(0.73), 0):
            type(Key.LEFT)
        else:
            type(Key.RIGHT)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.