Sizer 4.0 Macro railroad diagrams

Syntax diagrams

The syntax for Sizer expressions and macros is shown below in as railroad diagrams. Macros follow the macro diagram; and expressions follow the expression diagram.

Used to to set options during the execution of a macro. Currently only one option is supported. This controls whether adjust sizes to account for frame effects. See Compensate for Frame Effects for more information.

Variable names always starts with $. Variables can be defined anywhere in the macro. Variables must be assigned a value before being used.

A window-qualifier is used to specify which window should be resized.

active The main window of the application that is currently active. Also referred to as the foreground window.
last The window used by the previous resize action. If last is used in the first resize macro then the active window is used.
proc Finds one or more windows whose process is owned by an executable with a name that contains text. e.g. to find windows owned by notepad.exe use proc["notepad.exe"]
cap Finds one or more windows whose title (or caption) contains text. e.g. to find windows with readme.txt in the title use cap["readme.txt"]
desktop Restrict windows to the current desktop if running with multiple desktops.
number Select which window to use (when multiple windows match the process or caption) using a 1-based index.

Adjusts a dimension of the window being resized (as per the window-qualifier in the resize-block).

t Top coordinate of the window in pixels.
l Left coordinate of the window in pixels.
w Width of the window in pixels.
h Height of the window in pixels.

Obtain a dimension of an existing window or monitor. The first character describes which dimension to take.

t Top of the window or monitor.
l Left the window or monitor.
r Right of the window or monitor.
b Bottom of the window or monitor.
w Width of the window or monitor.
h Height of the window or monitor.

Following this character is a description of the window or monitor to use. By default the active monitor is used.

client The client area (usually the part of the application inside the window frame and menu).
win The entire window frame including the border and title bar.
mon A monitor attached to the system.
workarea The work area is the area on a monitor not including the taskbar.

A monitor-qualifier is used to specify which monitor to extract dimensions from.

active The monitor on which the active window resides.
primary The monitor set to be the primary monitor.
number A one based index of the monitor to use.