sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54510
[Question #689255]: Function worked, then stopped working..
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.