This document contains macros and tools that are automatically installed when ImageJ starts up. It defines macros for the Developer Menu, drawing tools, and a popup menu. It also contains an example of creating a custom command with a keyboard shortcut.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
37 views1 page
Startup Macros
This document contains macros and tools that are automatically installed when ImageJ starts up. It defines macros for the Developer Menu, drawing tools, and a popup menu. It also contains an example of creating a custom command with a keyboard shortcut.
cmd = getArgument(); if (cmd=="Help...") showMessage("About Popup Menu", "To customize this menu, edit the line that starts with\n\"var pmCmds\" in ImageJ/macros/StartupMacros.txt."); else run(cmd); }
macro "-" {} //menu divider
macro "About Startup Macros..." {
path = getDirectory("macros")+"About Startup Macros"; if (!File.exists(path)) exit("\"About Startup Macros\" not found in ImageJ/macros/."); open(path); }
// This example macro demonstrates how to create a
// custom command with a keyboard shortcut. //macro "Save As JPEG... [j]" { // quality = call("ij.plugin.JpegWriter.getQuality"); // quality = getNumber("JPEG quality (0-100):", quality); // run("Input/Output...", "jpeg="+quality); // saveAs("Jpeg"); //}