Last active
April 28, 2021 07:57
-
-
Save lacan/6bb93da43f701248734f6f6142496a0c to your computer and use it in GitHub Desktop.
[Useful Shortcuts ActionBar] An ActionBar that contains multiple shortcuts that are useful in Fiji #ImageJ #ActionBar #Fiji
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Action Bar description file :useful_shortcuts | |
// Provided by Olivier Burri for PCB-02 | |
// Date: 20210420 | |
// Copy this file (Do not rename it) to your Fiji installation under plugins/ActionBar | |
run("Action Bar","/plugins/ActionBar/useful_shortcuts.ijm"); | |
exit(); | |
<line> | |
<button> 1 line 1 | |
label=Close All | |
icon=noicon | |
arg=<macro> | |
run("Close All"); | |
</macro> | |
<button> 2 line 1 | |
label=Close Others | |
icon=noicon | |
arg=<macro> | |
close("\\Others"); | |
</macro> | |
</line> | |
<line> | |
<button> 1 line 2 | |
label=Open Using BioFormats... | |
icon=noicon | |
arg=<macro> | |
run("Bio-Formats Importer"); | |
</macro> | |
<button> 2 line 2 | |
label=Bio-Formats Configuration... | |
icon=noicon | |
arg=<macro> | |
run("Bio-Formats Plugins Configuration"); | |
</macro> | |
</line> | |
<line> | |
<button> 1 line 3 | |
label=Open Virtual Stack... | |
icon=noicon | |
arg=<macro> | |
run("TIFF Virtual Stack..."); | |
</macro> | |
<button> 2 line 3 | |
label=Open Image Sequence... | |
icon=noicon | |
arg=<macro> | |
run("Image Sequence..."); | |
</macro> | |
</line> | |
<line> | |
<button> 1 line 4 | |
label=BIOP Channel Tools... | |
icon=noicon | |
arg=<macro> | |
run("BIOP Channel Tools"); | |
</macro> | |
<button> 2 line 4 | |
label=Synchronize Windows... | |
icon=noicon | |
arg=<macro> | |
run("Synchronize Windows"); | |
</macro> | |
</line> | |
<line> | |
<button> 1 line 5 | |
label=Set Scale... | |
icon=noicon | |
arg=<macro> | |
// Check that there is a line ROI | |
if( selectionType() != 5) exit("Make a Line first."); | |
run("Set Scale..."); | |
</macro> | |
<button> 2 line 5 | |
label=Add Scalebar | |
icon=noicon | |
arg=<macro> | |
run("Scale Bar..."); | |
</macro> | |
</line> | |
<line> | |
<button> 1 line 6 | |
label=Duplicate... | |
icon=noicon | |
arg=<macro> | |
run("Duplicate..."); | |
</macro> | |
<button> 2 line 6 | |
label=Free | |
icon=noicon | |
arg=<macro> | |
showMessage("You pressed button 2 line 6"); | |
</macro> | |
</line> | |
<line> | |
<button> 1 line 7 | |
label=Free | |
icon=noicon | |
arg=<macro> | |
showMessage("You pressed button 1 line 7"); | |
</macro> | |
<button> 2 line 7 | |
label=Free | |
icon=noicon | |
arg=<macro> | |
showMessage("You pressed button 2 line 7"); | |
</macro> | |
</line> | |
<line> | |
<button> 1 line 8 | |
label=Start Macro Recorder | |
icon=noicon | |
arg=<macro> | |
run("Record..."); | |
</macro> | |
<button> 2 line 8 | |
label=Edit this ActionBar | |
icon=noicon | |
arg=<macro> | |
dir = getDirectory("plugins"); | |
open(dir+"/ActionBar/useful_shortcuts.ijm"); | |
</macro> | |
</line> | |
// end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment