static bool robotDragMouse(final Point a, int delay, final Point b) ctex { mouseMover().enable(); if (mouseMover().blocked()) false; final new Robot robot; robot.mouseMove(a.x, a.y); final int button = InputEvent.BUTTON1_DOWN_MASK; robot.mousePress(button); swingLater(delay, r { mouseMover().moveMouse(Pt(b.x, b.y)); robot.mouseRelease(button); }); true; }