Skip to content

Organizing the canvas

Frames, notes and wire bends keep a big macro readable, and Make it a macro of its own turns a group of steps into a reusable macro. All of it is in the Organize menu.

A macro with many steps reads better when related steps sit together, a note says why something is there, and wires don't cross. MacroWin has four tools for that. None of them changes what the macro does.

They're all in one place: right-click the canvas, a selection of steps or a wire, and choose Organize at the bottom of the menu. Organize is part of Advanced mode. In Simple mode the menu doesn't show it, but frames, notes and bends a macro already has are always drawn.

Frames

A frame is a titled, colored box behind a group of steps.

  • Organize > Put in a frame on selected steps draws a frame around them.
  • Organize > Add a frame on the canvas adds an empty one where you clicked.

Drag the frame's title to move it, together with the steps, notes and wire bends inside it. What counts as inside is decided when you start dragging: a step that lies wholly in the frame moves with it. Drag an edge or a corner to resize the frame, and double-click the title to rename it. Right-click the title for Color, Rename and Remove frame (the steps stay where they are). Frames show faintly in the minimap.

Notes

Organize > Add a note puts a note where you clicked. Click into it and type: plain text, up to 2,000 characters. Notes are for you. They're never run, and ${variables} in a note stay as typed. Drag a note by its edge, resize it by its corner, and right-click it for Color and Remove note.

Wire bends

Right-click a wire and choose Organize > Add a bend here to give it a point it goes through. Drag the point to route the wire around other steps; double-click it to remove it. A wire can have several bends.

Make it a macro of its own

Select some steps and choose Organize > Make it a macro of its own.... MacroWin asks for a name, saves the steps as a new macro (turned off, without a trigger, in the same profile) and puts one Call Macro step in their place that waits for it. The new macro can then be called from other macros too.

It works only when the result runs exactly as before, so MacroWin checks the selection first and says in one sentence why it can't when:

  • the steps are started from more than one place, or lead out to more than one place;
  • the selection holds a trigger, End Macro, Return Value or Started By, or Exit Loop or Next Round without their loop;
  • a path inside the selection leads nowhere, which ends the run today but would only end the new macro.

Values wired into the selected steps are handed over as Call Macro's Parameters (the new macro reads them as ${name}), and one value wired out comes back through Return Value into Call Macro's Result. Variables of the macro that the steps read are passed along too. If the steps set a variable the rest of the macro reads, the dialog warns you: the new macro has variables of its own.

Undo puts the steps back; the new macro stays, so delete it yourself if you don't want it.

What they change

Only how the macro looks. The AI doesn't see frames, notes or bends, and keeps them when it changes a macro. They aren't published to the Macro Hub.