!7 cmodule GMail > DynVisualBot { transient bool foundSomething; //transient RandomScreenScan scan = new(400, 100); transient IF1 scan = foundSomething -> rect(0, 0, 400, 100); transient Rect lookingAt; visual dm_printLogComponent(); start-thread { while not null (lookingAt = scan.get(foundSomething)) { BufferedImage img = shootScreen2(lookingAt); BWImage bw = new(img); L rects = autoSegment(bw, ocr_recognizeMultiLine_scored_g); rects = ocr_mergeOverlappingY(rects); foundSomething = notNull(print(ocr_checkForRegexp(bw, rects, "Inbox\\s?\\(([0-9,]+)"))); } }