OnAppear()/observe() just can detected one image 1 time ,but failed in the 2nd time in same region

Asked by alicewang

my purpose is to deal w/ 1 button which will appear several times in a game(actually it is the angrybird game) ,then i used the onappear()/observe() but ir can just deal w/ the 1 time the button shows ,following shows can not be deal ,below is my test code ,
what i think is that it can deal each time when button shows until the script end.

below is my test code :
 def myHandler(event):
    click("1373853815762.png")
    wait(5)
Settings.ObserveScanRate=1
onAppear(("1373853815762.png"),myHandler)
observe(FOREVER,background = True)
for i in range(1,5000):
    print "testing....."
    wait(5)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Sorry, it is a bug and will be fixed with the service update end of July.

Revision history for this message
alicewang (liwang) said :
#2

So many thanks for your help ! :)

Regards
Alice Wang

APSE --> PV3 Team
Phone: Int.(2-9882) Ext.(6109-9882)

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of RaiMan
Sent: Monday, July 15, 2013 2:26 PM
To: Alice Wang
Subject: Re: [Question #232417]: OnAppear()/observe() just can detected one image 1 time , but failed in the 2nd time in same region

Your question #232417 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232417

    Status: Open => Solved

RaiMan changed the question status:
Sorry, it is a bug and will be fixed with the service update end of
July.

--
You received this question notification because you asked the question.