sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20104
[Bug 1212706] Re: [1.0.1] observe with onChange() does not work
** Changed in: sikuli
Status: In Progress => Fix Committed
** Changed in: sikuli
Importance: High => Critical
** Description changed:
+ --- fixed in 1.0.1 per August 20 at 2 pm gmt+1
+ run setup again after that time to get fix
+ ----------------------------------------------
+
Hi,
- My environment is
+ My environment is
windows xp + JRE 6 update 45
I had test the code in official document
def changed(event):
- print "something changed in ", event.region
- for ch in event.changes:
- ch.highlight() # highlight all changes
- sleep(1)
- for ch in event.changes:
- ch.highlight() # turn off the highlights
+ print "something changed in ", event.region
+ for ch in event.changes:
+ ch.highlight() # highlight all changes
+ sleep(1)
+ for ch in event.changes:
+ ch.highlight() # turn off the highlights
with selectRegion("select a region to observe") as r:
- # any change in r larger than 50 pixels would trigger the changed function
- onChange(50, changed)
- observe(background=True)
+ # any change in r larger than 50 pixels would trigger the changed function
+ onChange(50, changed)
+ observe(background=True)
wait(30) # another way to observe for 30 seconds
r.stopObserver()
when I use old version of sikuli (1.0RC3)
everything work fine,
but when I use version 1.0.1
will always get error message
[error] script [ sikulitest ] stopped with error in line 11 <--observe(background=True)
[error] java.lang.NullPointerException ( java.lang.NullPointerException )
I also tried on windows 7 64 bit + JRE7
have the same error,
is it a bug in version 1.0.1
or observe will be use in different way in new version?
** Summary changed:
- [1.0.1] observe with onChange() does not work
+ [1.0.1 ok] observe with onChange() does not work and does not run in background
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1212706
Title:
[1.0.1 ok] observe with onChange() does not work and does not run in
background
Status in Sikuli:
Fix Committed
Bug description:
--- fixed in 1.0.1 per August 20 at 2 pm gmt+1
run setup again after that time to get fix
----------------------------------------------
Hi,
My environment is
windows xp + JRE 6 update 45
I had test the code in official document
def changed(event):
print "something changed in ", event.region
for ch in event.changes:
ch.highlight() # highlight all changes
sleep(1)
for ch in event.changes:
ch.highlight() # turn off the highlights
with selectRegion("select a region to observe") as r:
# any change in r larger than 50 pixels would trigger the changed function
onChange(50, changed)
observe(background=True)
wait(30) # another way to observe for 30 seconds
r.stopObserver()
when I use old version of sikuli (1.0RC3)
everything work fine,
but when I use version 1.0.1
will always get error message
[error] script [ sikulitest ] stopped with error in line 11 <--observe(background=True)
[error] java.lang.NullPointerException ( java.lang.NullPointerException )
I also tried on windows 7 64 bit + JRE7
have the same error,
is it a bug in version 1.0.1
or observe will be use in different way in new version?
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1212706/+subscriptions
References