← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #667481]: How to speed up script

 

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

    Status: Open => Answered

masuo proposed the following answer:
Settings.MoveMouseDelay = 0
r1 = Region(50,50,400,300)    # Specify the region where the image may appear.
r2 = Region(100,500,200,100) # It is unnecessary If the region where both of image may appear is same.
for step in range(99999):
    r1.wait("1522690717340.png", 99999999999)
    r1.click()
    sleep(1.0)
    type("e")
    sleep(0.1)
    type("f")
    sleep(10.0)
    r2.wait(Pattern("1522496447516.png").targetOffset(19,-189), 99999999)
    r2.click()
    sleep(0.2)

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