← Back to team overview

sikuli-driver team mailing list archive

[Question #293686]: Image is static? Won't research?

 

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

In my sikuli script, I am checking if an image exists. I then doubleclick the image. Then I move said image out of the location. Soon the images start moving up in a list, but the doubleclick still clicks on the old spot, instead of a new one.
import random
Settings.MoveMouseDelay = 0
whetstones = Region(797,343,141,402)
while whetstones.exists(Pattern("1463178020566.png").similar(0.85)):
    whetstones.doubleClick(Pattern("1463178020566.png").similar(0.85))
    hvr = find("1463185647278.png").getCenter().offset(random.randint(-5,5), random.randint(-5,5))
    hover(hvr)
    wait(0.1)
    type("i")
    wait(2.5)
Typing 'i' moves the image.

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