|
Post by wmerussi on Jun 6, 2017 17:31:51 GMT
I'm trying to check a snapshop that Ankulua does from a region but I keep getting the following error: Runtime error: java.ioIOException: getColor(1, 1) is outside image with width 1 and height 90 I'm using the code below: -- variables pmColor, x, y, w and h are setted above
searchRegion = Region(x, y, w, h)
searchRegion:exists(pmColor, 0)
usePreviousSnap(true)
for i = 1, h do
local r, g, b = getColor(Location(1, i))
--do something end
usePreviousSnap(false) I've tried getColor(Region(1, i, 1, 1)) but it doesn't work. Any help is appreciated
|
|