Skip to content

Instantly share code, notes, and snippets.

@mutterer
Created June 1, 2021 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mutterer/73bf287986b43da82c99f56abb7c1a5f to your computer and use it in GitHub Desktop.
Save mutterer/73bf287986b43da82c99f56abb7c1a5f to your computer and use it in GitHub Desktop.
types and evals lines of IJ macro code
run("Fresh Start");
print ("\\Clear");
eval('script','WindowManager.getWindow("Log").getTextPanel().setFont(new Font("Monospaced",Font.PLAIN,18),true);');
print("");
s=split(File.openAsString("Macrodemo.ijm"),"\n");
for (i=0;i<s.length;i++){
for (c=0;c<s[i].length;c++) {
print ("\\Update"+i+2+": "+s[i].substring(0,c+1));
beep();
wait(random()*100);
}
eval(s[i]);
wait(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment