← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #288724]: Help with Region

 

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

    Status: Open => Answered

masuo proposed the following answer:
[Example1:  click LastMatch]
r = Region(0,0,200,200)
if r.exists("image.png"):
    r.click()

[Example2:  click another image in same region]
r = Region(0,0,200,200)
if r.exists("image1.png"):
    r.click("image2.png")

[Example3:  click another image in another region]
r = Region(0,0,200,200)
if r.exists("image1.png"):
    click("image2.png")

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