New question #689255 on Sikuli:
https://answers.launchpad.net/sikuli/+question/689255
I'd appreciate if someone can point out why I'm getting an error here:
NameError: global name 'Color' is not defined
def searchThis():
if
myRegion.exists(Pattern("1581861617531.png").similar(0.90).targetOffset(-107,-3),0.10):
hover(Pattern("1581861617531.png").similar(0.90).targetOffset(-107,-3))
p = getLastMatch().getCenter()
aColor = Color(0xb46367)
bColor = myRobot.getPixelColor(p.x, p.y)
if bColor.toString() == aColor.toString():
print "FOUND IT"
else:
print "NOT FOUND"
--
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