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