Login  Register

Listening on commands

Posted by Filip Sedlak on Nov 16, 2014; 8:28pm
URL: http://imagej.273.s1.nabble.com/Listening-on-commands-tp5010468.html

Hi,
I wonder if it's possible to access both the currently performed command
and its parameters. Something similar what Plugins > Macro > Record does
but from a plugin.

I'd like to do an analysis of the user's actions and I need to get the
performed operations without asking the user to e. g. copy-paste the
recorder output to an external app.

Using Executer.addCommandListener gives me only the command name and not
its parameters. I started playing with ij.plugin.frame.Recorder, trying
to patch it to support attaching listeners. The listeners would be
notified with similar information like what is added to the text area.

Can you see a simpler way to achieve this? Most importantly, it would be
great if I could avoid running a patched version of the application.

Thanks,
Filip

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