// This example action tool uses the Toolbar.setIcon() method, // added in v1.53h, to dynamically update its icon. var state = 1 macro "Toggle Icon Action Tool - C037N44F00nn" { if (state==1) { call("ij.gui.Toolbar.setIcon", "Toggle Icon Action Tool", "Ca30N44V00nn"); state = 2; } else { call("ij.gui.Toolbar.setIcon", "Toggle Icon Action Tool", "C037N44F00nn"); state = 1; } }