← Back to team overview

sikuli-driver team mailing list archive

[Question #285511]: Speed up sikuli script

 

New question #285511 on Sikuli:
https://answers.launchpad.net/sikuli/+question/285511

Hi there. First of all, sorry for my English... :) Ok, this is my problem, i am totally new in programming and i am having trouble with this. I want to speed up part of my loop...  In that part i have i think about 10* if exists: 
if exists(Pattern("aaa.png").similar(0.80)):
        click(Pattern("aaa.png").similar(0.80).targetOffset(347,25))
        click(Pattern("xxx.png").similar(0.90).
if exists(Pattern("bbb.png").similar(0.81)):
        click(Pattern("bbb.png").similar(0.84).targetOffset(401,27))
        click(Pattern("xxx.png").similar(0.90))

And all works fine but it needs a lot of time to search for all that. This process repeat all the time trough 
the whole script and needs to be precise and faster... :)

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