← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #657137]: region search work slower

 

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

    Status: Answered => Open

Logan John is still having a problem:
Thank you for the info. Unfortunately i can't just click on the center of the region cause i might click on something else
About the problem i've mention
I have noticed a similar behavior with the second region.
It occurred to me,  after i posted here, that maybe the other delay ive notices in the script is because of the same "bug". I've check a backup script a few days ago and it seems that i was right
the script before (no delay)

try:
        if exists(Pattern("1503179857418.png").similar(0.94)):
            click(Pattern("1503161155828.png").similar(0.85))
        else:
            return "stage"
    except:
        return checkstatus("party failed")
        
    return ""

and now (with the delay):

 try:
        while reg2.exists(Pattern("1503179857418.png").similar(0.94),0):
            reg2.click(Pattern("1503161155828.png").similar(0.85))
            wait(0.5)
    except:
        return checkstatus("party failed")
        
    return ""

The wait(0.5) is because i was getting multiple click before the image disappear.
But that is not the issue.
You can notice the delay when the mouse waits a bit before it start moving to the correct location.

I forgot to mention that im doing the script to control 2 nox android
emulators.

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