Browse the docs

Highlight area

Draws a red outline over the screen, a window or a rectangle for a moment, then removes it.

Highlight area

Keyboard Maestro: HiliteLocation

Details #

Puts a red-bordered, lightly tinted box over part of the screen. It floats above everything, does not take focus and does not block the mouse, then disappears. Use it to show what a macro is about to act on or to draw your eye to a window.

Choose the area with area, or give an exact rectangle with x, y, width and height (all four; they win over area):

  • screen (the default) covers all displays together.

  • main covers the main display.

  • window covers the front window of the front app, or of app.

The step waits until the outline is gone. The output holds x, y, width and height of the rectangle used.

Parameters #

ParameterTypeRequiredValuesWhat it does
apptextFor window: the app whose front window to outline.
areaone ofscreen main windowscreen, main or window. Anything else is treated as screen.
heightnumber
secondsnumberHow long it stays. The default is 1. Values are held between 0.1 and 30.
widthnumber
xnumber, y, width, height: A rectangle in screen points. Used only when all four are given.
ynumber

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Outline the main display for two seconds
Do
  1. Outline a screen area
  2. Show “Outline shown”
Open in Switchboard to try it

Gotchas #

  • window fails if the app has no window to read. It needs Accessibility permission.

  • Fails with "no display to outline" if no display is found.

  • Like most steps it has a 10 second time limit, so for seconds above about 10 also set a longer timeout on the step.

  • Steps that touch the Mac are simulated in a dry run, so Try it does not draw the outline.

See also #

Show message, Show notification