Question #245383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/245383
Status: Open => Answered
obiwan-92 proposed the following answer:
Hello.
Take a screenshoot of your object without any background at all.
Then define the region between the point A and B.
For example : r = Region(xA, yA, xB-xA, yB-yA) # where xA, yA and xB, yB are
the coordinates of your two points.
Your code should be something like this :
try:
r.wait(objectMoving , 10)
print "picture visible"
except:
print "picture not visible"
Or :
if r.exists(objectMoving): print "picture visible"
else: print "picture not visible"
It should be work ;)
Regards.
--
You received this question notification because you are a member of
Sikuli Drivers, which 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