Question #264487 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/264487
Edward posted a new comment: Like I mentioned before, you are probably the single most helpful person I've talked to on the internet, hahahah! I've stopped by a few handfuls of forums that were dedicated to learning things such as PHP in the past. They all were extremely rude and pompous, it was always frustrating and quite baffling. I seem to have caught a bit of an illness so I still haven't quite finished looking through all the chunks you've shared with me so far, but I was working on them. I first tried the lastArrow just to see what it would do. It would run the first set of arrows just fine, but on the second set it would mostly fail on the first one, sometimes it would get the first 1 or 2 but it could never complete the second set of arrows. I tried storing the arrows in a container like you suggested in your latest post. I couldn't seem to get the CONTINUE to be nested correctly. If I just add continue to the bottom instead of popASK and a quick wait() near the start. It ran for about 7 minutes before failing (not sure if it failed to recognize an arrow or the wait() I put in wasnt long enough and it eventually ran too fast and looked at the same set twice. So ignoring the 'whoops-code' for the moment, does the below look correct if I were adding in to look at the second to last arrow before continuing? ---------- # the concrete solution reg.setCols(5) # segment the region horizontally into 5 segments while True: # loop until finished foundArrows = [] # empty list # loop through the segments for i in range(5): col = reg.getCol(i) # col.highlight(1) # loop through the arrow types for a in arrows: # check the arrow type in segment if col.exists(Pattern(a).similar(0.8), 0): print i, a, col.getLastMatch().getScore() wait(.2) type(arrows[a]) # type the associated key foundArrows.append(a) break # leave the inner loop max = 10 if reg.getCol(3).exists(Pattern(foundArrow[3]).similar(0.9), 0): wait(0.5) max -= 1 if max == 0: continue # loop again # exit() # to terminate in this case (recommended while testing) ---------- -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp