Re: Disable the cancel button on a macro dialog box
Posted by mattjackson on Mar 18, 2015; 10:53pm
URL: http://imagej.273.s1.nabble.com/Disable-the-cancel-button-on-a-macro-dialog-box-tp5012041p5012051.html
That turned out to be relatively simple. I'm sharing just in case someone else runs into the same problem:
------------------------------------------------------------------------------------------------------------------
GetDateAndTime(year, month, dayOfWeek, dayOfMonth, hour, minute, second, msec);
TimeStamp=MonthNames[month]+"-"+dayOfMonth+"-"+year+"_"+hour+"-"+minute+"-"+second;
OutputCALL = dir + "\\Calls_"+TimeStamp+".txt";
//Output the user's phenotype calls
f = File.open(OutputCALL);
print(f,"ROIIndex Calls");
for(j=0;j<Nroi;j++) {getDateAndTime(year, month, dayOfWeek, dayOfMonth, hour, minute, second, msec);
print(f,j+" "+Cell[j]);
}
File.close(f);
if(OldOutput!=0){
File.delete(OldOutput);
}
OldOutput=OutputCALL;