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(
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(
wait(5)
Settings.
onAppear(
observe(
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:
To post a message you must log in.