sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #19245
[Bug 1201280] [NEW] OnAppear()/observe() only works the first time for one image in same region
Public bug reported:
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)
** Affects: sikuli
Importance: High
Assignee: RaiMan (raimund-hocke)
Status: Fix Committed
** Changed in: sikuli
Status: New => Fix Committed
** Changed in: sikuli
Importance: Undecided => High
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 1.1.0
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1201280
Title:
OnAppear()/observe() only works the first time for one image in same
region
Status in Sikuli:
Fix Committed
Bug description:
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1201280/+subscriptions
Follow ups
-
[Bug 1201280] Re: [1.0.1] OnAppear()/observe() only works the first time for one image in same region
From: Greg, 2015-06-02
-
[Bug 1201280] Re: [1.0.1] OnAppear()/observe() only works the first time for one image in same region
From: RaiMan, 2015-06-02
-
[Bug 1201280] Re: [1.0.1] OnAppear()/observe() only works the first time for one image in same region
From: Greg, 2015-06-02
-
[Bug 1201280] Re: [1.0.1] OnAppear()/observe() only works the first time for one image in same region
From: Greg, 2015-06-02
-
[Bug 1201280] Re: [1.0.1] OnAppear()/observe() only works the first time for one image in same region
From: RaiMan, 2015-06-02
-
[Bug 1201280] Re: [1.0.1] OnAppear()/observe() only works the first time for one image in same region
From: Greg, 2015-06-02
-
[Bug 1201280] Re: [1.0.1] OnAppear()/observe() only works the first time for one image in same region
From: Greg, 2015-06-02
-
[Bug 1201280] Re: [1.0.1 ok] OnAppear()/observe() only works the first time for one image in same region
From: RaiMan, 2015-06-01
-
[Bug 1201280] Re: [1.0.1 ok] OnAppear()/observe() only works the first time for one image in same region
From: Greg, 2015-05-29
-
[Bug 1201280] Re: [1.0.1 ok] OnAppear()/observe() only works the first time for one image in same region
From: RaiMan, 2013-08-14
-
[Bug 1201280] Re: [1.0] OnAppear()/observe() only works the first time for one image in same region
From: RaiMan, 2013-07-18
-
[Bug 1201280] Re: [1.0] OnAppear()/observe() only works the first time for one image in same region
From: RaiMan, 2013-07-16
-
[Bug 1201280] Re: OnAppear()/observe() only works the first time for one image in same region
From: RaiMan, 2013-07-15
-
[Bug 1201280] [NEW] OnAppear()/observe() only works the first time for one image in same region
From: RaiMan, 2013-07-15
References