Get x,y from onappear

Asked by spyros-liakos on 2017-11-08

Hi there.. This works..

Reg_observe_always = Region(310,92,413,539)
p = Pattern("clock.png")
m = Reg_observe_always.exists(p,0)

x = m.x
y = m.y

print x
print y

but when I try on onAppear instead of exists I get nothing....

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2017-11-08
Last query:
2017-11-08
Last reply:
2017-11-08
spyros-liakos (spy-arts) said : #2

I need a working example to understand how to implement......and get those x,y as a variables...

RaiMan (raimund-hocke) said : #3

As mentioned :
Read the docs