← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #296402]: Best practice ?

 

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

Peter Sandberg posted a new comment:
Thanks very much !

I have not yet got to make it smart with lists etc. Wanted to get a feel
for how it works first, and I'm very rusty in programming and have not
used Phyton before. Actually, quiet easy to use Sikuli, great to do some
pgm. again, and fun to try Phyton.. :-)

Below is what I have done. Seems to work fine, but a bit slow when not
finding the patterns. I probably need to look at some of the
settings....

Thanks again Peter

-------

setFindFailedResponse(SKIP)
loc = Region(1195,611,378,141)
loc2 = Region(465,726,722,78)

while 1 > 0:
    if loc.exists("1468520600614.png"): doubleClick("1468520600614.png")
    elif loc.exists("1468521696872.png"): doubleClick("1468521696872.png")
    elif loc.exists("1468567647117.png"): doubleClick("1468567647117.png")
    elif loc.exists("1468521957543.png"): doubleClick("1468521957543.png")
    elif loc.exists("1468522053608.png"): doubleClick("1468522053608.png")
    elif loc.exists("1468522119471.png"): doubleClick("1468522119471.png")
    elif loc.exists("1468522188185.png"): doubleClick("1468522188185.png")
    elif loc.exists("1468522337050.png"): doubleClick("1468522337050.png")
    if loc2.exists("1468521813016.png"): click("1468521813016.png")

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