Login  Register

makePoint() to remove points from list

Posted by Thomas Eschner on Apr 20, 2011; 12:54pm
URL: http://imagej.273.s1.nabble.com/makePoint-to-remove-points-from-list-tp3684857.html

Hello,

In a macro, I use
setKeyDown("shift"); makePoint(xact, yact); setKeyDown("none");
to add points to a multi-point selection. That works well.
When I try to remove a particular point by
if (selectionContains(xact, yact)) {
  setKeyDown("alt"); makePoint(xact, yact); setKeyDown("none");
}
this very point is not removed, but all others instead.
When I use that function directly from the multi-point selections menu, Alt-click does what it is supposed to do, i.e. removes the clicked-on point.

Any hints?

Kind regards,
Thomas


--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone