sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #39575
Re: [Question #315288]: add xy to this script
Question #315288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/315288
Status: Open => Answered
RaiMan proposed the following answer:
--- st1 step to get it faster: only one search
if exists(Pattern("1469321512445.png").similar(0.50), 0) or exists(Pattern("1470143332576.png").similar(0.50), 0):
--- 2nd step to make it faster: restrict search region
reg = Region(x, y, w, h) # use your specific values
if reg.exists(Pattern("1469321512445.png").similar(0.50), 0) or reg.exists(Pattern("1470143332576.png").similar(0.50), 0):
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.