get("#388") -- rect functions get("#428") -- findContents get("#413") -- symbol finder cursor_unfocused = [[ RRRRRRRRRR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RAAAAAAAAR RRRRRRRRRR]] cursor_focused = {} for i=1, 19 do cursor_focused[i] = "RRRRRRRRRR" end problem = findContents() if problem then return problem end cropped = {width=contents_x2-contents_x1, height=contents_y2-contents_y1, getInt = function(x, y) return img.getInt(contents_x1+x, contents_y1+y) end} r1 = findSymbol(cropped, cursor_unfocused, 100) if r1 == nil then r2 = findSymbol(cropped, cursor_focused, 100) end if r1 then r1 = translateRect(r1, contents_x1, contents_y1) return "Cursor (unfocused): "..recttostring(r1) elseif r2 then r2 = translateRect(r2, contents_x1, contents_y1) return "Cursor (focused): "..recttostring(r2) end