sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18827
Re: [Question #231080]: Click Image left of found Image
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.