Login  Register

Re: write macro functions that return values

Posted by Arne Seitz on Sep 18, 2012; 5:14am
URL: http://imagej.273.s1.nabble.com/write-macro-functions-that-return-values-tp5000093p5000096.html

Hi Tischi,

maybe you can use the functions Prefs.set() and Prefs.get(). They allow you to write/read parameters to/from the IJ_Prefs.txt file. Maybe not an extremely elegant way but at least it used to work for me.

Cheers
Arne    

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Christian Tischer
Sent: lundi 17 septembre 2012 18:10
To: [hidden email]
Subject: write macro functions that return values

Hello,

for instance, the Macro Function

*getCursorLoc(x, y, z, modifiers)*
*
*
*writes values in x,z,y that can be accessed later by other macro functions.
*
*
*
*is it possible to write a plugin like this on my own?*
*
*
*specifically, one of my plugins obtains a file-and foldername and i would like to "keep" those for later use in the macro in order to construct filenames for images that i need to save.*
*
*
*Cheers, Tischi*
*
*
*
*
*
*
*
*

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html