!7 cmodule FindActiveTab > DynPrintLogAndEnabled { transient CloseToColorPredicate solution = new(0x266D9F, 0.05051); transient int gridSize = 4; start { doEvery(3.0, r doIt); } void doIt { if (!enabled) ret; BufferedImage img = shootScreenArea(0, 0, screenWidth(), 50); RGBImage rgb = new(scaleImageWithFactor(1.0/gridSize, img)); DoublePt pt = centroidForColorPredicate(solution, rgb); int x = iround(pt.x*gridSize), y = iround(pt.y*gridSize); pointArrowsToArea(toRectangle(rectAround(x, y, 80, 30)), 3.0); } }