← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #226788]: onAppear

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
with "QTTTQwww2nd1.png" as reg:

must be a Region object:


# as a guessed example
m = find("QTTTQwww2nd1.png")
reg = Region(m.x, m.y, 200, 200)
with reg:
     onAppear(message.png, Check)
     observe(15)

# or even simply
m = find("QTTTQwww2nd1.png")
reg = Region(m.x, m.y, 200, 200)
reg.onAppear(message.png, Check)
reg.observe(15)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.