sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30172
Re: [Question #260950]: If something exists in region one then find it region 2
Question #260950 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/260950
Status: Answered => Open
geo is still having a problem:
ok so after alot of experimentation the result was this :
Z1 = (Region(676,368,251,140))
Z2 = (Region(450,264,265,139))
if exists("1421711209099.png"):
click("1421711209099.png")
if Z1.exists(Pattern("1421708037235.png").similar(0.80)):
click("OK.png")
wait(0.5)
Z2.click(Pattern("1421708037235.png").similar(0.73))
if Z1.exists("1421708094264.png"):
click("OK.png")
wait(0.5)
Z2.click("1421758418609.png")
if Z1.exists("1421711606782.png"):
click("OK.png")
wait(0.5)
Z2.click("1421758857762.png")
if Z1.exists(Pattern("1421710138541.png").similar(0.60)):
click("OK.png")
wait(0.5)
Z2.click(Pattern("1421710138541.png").similar(0.57))
if Z1.exists(Pattern("1421710408378.png").similar(0.78)):
click("OK.png")
wait(0.5)
Z2.click(Pattern("1421710600207.png").similar(0.57))
The problem is since there are alot more variables i need to add and the search becomes slow is there a better method for this ?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.