Login  Register

selectionType()

Posted by Roberto Sotto-Maior Fortes de Oliveira on Nov 21, 2009; 2:29am
URL: http://imagej.273.s1.nabble.com/selectionType-tp3690388.html

I am trying to write a macro code to orient an unskilled user during a
point selectioning specific application.

However, the selectionType()macro function results value 10 for both Point
and Multi-Point Selection Tools.

If the result for both tools could be different I would write the code as:

/////////////

do {

waitForUser("You must select your first point using the Point or Multi-
Point Tools");

selection = selectionType();

} while (selection < 10);

if (selection == 10)

waitForUser("Choose your next two points! You must hold down the shift
key");

if (selection == 11)  // a fictional value suggested for the multi-point
tool

waitForUser("Choose your next two points!");

///////////

Any suggestion for a code to perform in similar way?


Sincerely,

Roberto Sotto-Maior