function dragLinkLabel() {
const lambda = myDiagram.findNodeForKey("Lambda");
if (!lambda) return;
const link = lambda.findLinksConnected().first();
if (!link) return;
const label = link.findObject("LABEL");
const p0 = label.getDocumentPoint(go.Spot.Center);
myRobot.mouseDown(p0.x, p0.y, 0);
myRobot.mouseMove(p0.x+4, p0.y-4, 100);
myRobot.mouseMove(p0.x+20, p0.y-20, 200);
myRobot.mouseUp(p0.x+40, p0.y-40, 400);
}
I wonder if you aren’t doing the first mouseMove close enough to the mouse-down point so that it registers as a move for the label rather than somewhere else (such as at 30,100).