Auto code completion for IJ macro


I removed the "<a name=Dialog.getNumber></a>" from line 293, which was out of place, and the extra quote from line 2652.

I also added separate entries for close("*") and close("\\Others").


We may want to devise a strategy for keeping and in sync. The content of is layered into the toplevel domain, so e.g. is the same file as The entire is refreshed nightly from by a Jenkins job.

@Wayne Maybe it would make sense to copy the contents of over top the mirror after the mirror has completed? I.e.: we first mirror to, then copy over it to cover the situations where that content exists and is newer? How would you prefer things to be organized? I do not feel strongly, although I think users would like it if the content of the toplevel domain was as reliable and up-to-date as possible.


@ctrueden Just for curiosity: Might it be possible that the mirroring script/code commits the recent functions.html to github in case it detects changes? That would allow us removing the web pinging code from the autocompletion and get rid of the short hang when switching to macro language…


It would make sense to copy these files and directories:

The src and jars directories should be copied to

These files are updated more frequently than the corresponding versions on, which I can’t easily update.

I would make more files available at but I am unable to edit directories that contain an index.html file.


@Wayne A command added in 1.51a5 but missing from the functions page is Roi.getContainedPoints().



I added this description:

Roi.getContainedPoints(xpoints, ypoints)
Returns, as two arrays, the x and y coordinates of the pixels inside the current selection. Aborts the macro if there is no selection.

To the macro functions list at


Very timely release for my macro imagej course. Work great on Ubuntu 18.04, and no problem reported during this week imageJ macro course with attendees on Mac OS X and Windows 7/10.

One autocomplete error:
for (i = 0; i < 10, i++) { -> replaces the second semicolon by a comma.


Bertrand Vernay, PhD
Imaging Facility Manager
MRC Centre for Regenerative Medicine
SCRM Building
The University of Edinburgh
Edinburgh bioQuarter
5 Little France Drive
EH16 4UU

Office: +0044 (0)131 651 9543


Thanks @Bertrand_Vernay!

This one is fixed in the version which will become part of Fiji. :slight_smile: