New question #200617 on Sikuli:
https://answers.launchpad.net/sikuli/+question/200617
Hi! I'm trying to find colored pixels in a region with this code, but no luck :(
Can someone tell me whats wrong?
def findItemsOfColor():
area = Region(playground.x + 75,playground.y + 90,600,400)
area.highlight(1)
wait(1)
x = area.x
y = area.y
i=0
while i==0:
x = x+1
p = Location(x,y)
aColor = Color(0x6969FF)
if myRobot.getPixelColor(p.x, p.y) == aColor:
print "FOUND ITEM!!!"
click(x+4,y+4)
wait(1)
if x > area.x + area.w:
print "Searched row"
x = area.x
y = y + 1
if y > area.y + area.h:
i = 1
break
--
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