Question #695135 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695135
Status: Answered => Open
Aydın is still having a problem:
The image in the area I determined on the screen changes once, but the
application says it has changed 2 times.
Why is this happening?
I don't want to raise the wait() because it slows down my transactions.
My Code Image
https://ibb.co/LncDJ3s
MY CODE
#*********************************
reg= (Region(872,141,579,242))
def changed():
print "changed"
def notchanged():
print "notchanged"
def onchangedFunction(event):
wait(0.5)
event.getRegion().stopObserver()
#event.stopObserver()
reg.onChange(50,onchangedFunction)
for x in range(2):
click(Location(371, 765))
status = reg.observe(1,background=False)
print "status = ",status
#*********************************
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp