← Back to team overview

sikuli-driver team mailing list archive

[Question #686442]: Using onAppear

 

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

In version 2.0.1 I am trying to use the onAppear function to catch when a specific piece of text appears. Below is the code I am using, it simple click a button which causes the image to change. The expected image is within five clicks of the button but the onAppear does not see it and the next click happens which takes away the text I am looking for.I have trued passing the text as a constant, as a variable and as shown in the code as an image. None worked.


def changed(event):
    print("Found It")
 
regmake.onAppear(  "1575203969807.png",changed)

for step in range(5):
    click(Pattern("1575203845288.png").targetOffset(250,123)

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