Skip to content

Panel Shown / Closed

  • Trigger
  • Panels

Starts the macro when a panel comes on the screen (Show Panel in any macro) or when it closes: by one of its buttons, its X, Hide Panel or the emergency stop. Showing a panel that's already open doesn't count. When it closes, Button says which button closed it, so a window panel's OK and Cancel can start different work.

The Panel Shown / Closed step in the MacroWin editor
When the Expense entry panel is closed with its Add button, the expense is added to a CSV file.

Settings

SettingStarts asWhat it does
Panel empty Its name; * matches anything. Leave it empty for any panel.
When Shown
  • Shown: As soon as it comes on the screen.
  • Panel closed: When it closes, however it closed.
Button empty Only when this button closed it (its name). Leave it empty for any way it closed.

Outputs

Panel Shown / Closed outputs
PanelThe panel's name.
ButtonWhen it closed: the name of the button that closed it; empty when its window was closed, MacroWin closed it, or it was shown.

Build macros with Panel Shown / Closed in MacroWin. Free to download, no account needed. Windows 10 and 11.

Download