// Moves the selection left and down a specified distance in pixels. // Does not work with traced or straight line selections. macro "Move Selection" { dx = getNumber("Delta X:", 10); dy = getNumber("Delta Y:", 10); moveSelection(dx, dy); } function moveSelection(dx, dy) { requires("1.31b"); if (selectionType<0) exit("Selection required"); getBoundingRect(x, y, width, height); if (selectionType==0) makeRectangle(x+dx, y+dy, width, height); else if (selectionType==1) makeOval(x+dx, y+dy, width, height); else { getSelectionCoordinates(xCoordinates, yCoordinates); for (i=0; i