!7 p-experiment { mouseMover().endAfterInterference = false; while licensed { if (mouseMover().blocked()) { consoleStatus("BLOCKED"); sleepSeconds(1); continue; } else consoleStatus(""); BufferedImage img = shootScreen2(); Rect r = ocr_findTerminalBackground(RGBImage(img)); if (r == null) continue; Rect title = shrinkRect(40, 4, new Rect(r.x, r.y-16, r.w, 16)); //containsColor(clipBufferedImage(img, title), 0x454545) bool isTitle = containsColor(clipBufferedImage(img, new Rect(centerOfRect(title), 1, 1)), 0x454545); if (isTitle) { //print(title); Pt p = centerOfRect(title); Pt p2 = Pt(p.x+random(-150, 150), p.y+random(100, -100)); Rect usable = shrinkRect(-100, 20, Rect(usableWindowArea())); usable.h = max(40, usable.h-300); p2 = limitPtToRect(p2, usable); if (eq(p, p2)) continue; if (robotDragMouse(toPoint(p), 500, toPoint(p2))) { print("Dragging " + p + " to " + p2); sleep(3000); } } } }