Login  Register

Disable the cancel button on a macro dialog box

Posted by mattjackson on Mar 18, 2015; 3:35pm
URL: http://imagej.273.s1.nabble.com/Disable-the-cancel-button-on-a-macro-dialog-box-tp5012041.html

I have a dialog box within my macro. There's a lot of interaction here (over the course of hours), and just every so often, I accidentally hit the cancel button, abort the macro, and lose all the data.

So, does anyone know of a way to disable the cancel button or retrieve the cancel call within the macro and do some if structure to avoid aborting the program?

Or, is there a way to store certain arrays even if the cancel button is hit? That is, instead of purging the data and losing it, can I program the macro to auto-write in any case the macro is terminated?

Thanks so much,
Matt