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

    Status: Open => Answered

RaiMan proposed the following answer:
This should do it

def ClickLeft(img1, img2, errorno, errormsg, reg =None):
    reg = reg if reg else SCREEN   # if no region given, searches the primary 
screen
    if reg.exists(img1): # no FindFailed exceptions
        reg.getLastMatch().left().click(Img2) # reuse the known match and try 
to click to the left on img2
    else:
        addErrMsg(errorno, errormsg)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to