← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #700374]: Speed Up the "replay" rate

 

Question #700374 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700374

    Status: Answered => Open

Lordpro is still having a problem:
Okay, this helped a lot, but still when i have 3 if cycles how can i
speed them up? its just clikin the buttons, i provided my source code,
any idea how to speed this code up?

setWaitScanRate(1)
Settings.MoveMouseDelay = 0
n=0
while(n<1):
    n=n+1
    if(has(Pattern("1643014040911.png").targetOffset(-49,-1),3)):
        click(Pattern("1643014040911.png").targetOffset(-49,-1))
    if(has("1643014901291.png",3)):
        click("1643014901291.png")
    if(has(Pattern("1643016386995.png").similar(0.90),3)):
        click(Pattern("1643016386995.png").similar(0.90).targetOffset(174,0))
        click("1643013175497.png")
        click("1643013921634.png")
        click("1643013965598.png")
    if(has(Pattern("1643016940607.png").targetOffset(67,-1),3)):
        click(Pattern("1643013257650.png").exact().targetOffset(187,3))
        click("1643013175497.png")
        click("1643013921634.png")
        click("1643013965598.png")

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