Get x,y from onappear

Asked by spyros-liakos

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:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1
Revision history for this message
spyros-liakos (spy-arts) said :
#2

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

Revision history for this message
RaiMan (raimund-hocke) said :
#3

As mentioned :
Read the docs