Posted by
Straub, Volko A. (Dr.) on
May 31, 2015; 6:05am
URL: http://imagej.273.s1.nabble.com/getCursorLoc-function-tp5012993.html
Hi Everybody,
I am using the getCursorLoc(x, y, z, modifiers) function in a macro.
Using it with most selection tools, the value returned by the variable
when clicking the left mouse button is 16. However, I noticed that when
using it with thepointselection tool it can be 16, 32 or 48, which
appears to depend on the cursor movement as illustrated by the code
below. It looks like it has something to do with the cursor movement
(i.e. when cursor is moving at start and end of mouse click, it appears
to be 16, if it is stationary at start of mouse click it seems to be
initially 48 followed by 32 until cursor is moved), but I couldn't find
any comments about this in the macro command documentation. Could
anybody provide some more detail/explanation?
Thanks,
Volko
setOption("DisablePopupMenu", true);
setTool(7);
modifiers=0;
while (modifiers!=4) {
getCursorLoc(x,y,z,modifiers);
print(toolID+" "+modifiers);
wait(100);
};
setOption("DisablePopupMenu", false);*
**
*
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html