Skip to content

Read QR or Barcode

  • Action
  • Screen
  • Advanced mode

Reads a QR code or barcode on the screen (a window, an area, one you drag out when it runs) or in a picture file, and gives its text, e.g. a link, a Wi-Fi password or a product number. Continues on Found or Not found, and on Cancel when choosing the area is canceled.

In the editor, press Space on the canvas to add a step, then open Actions > Screen, or type its name. In Simple mode it's under Show all, and search finds it.

Settings

Wait for it up to (ms)

A duration

0 looks once. Otherwise it keeps looking until a code shows up or the time is up.

Starts as: 0 Can come from another step's output

Look in

A choice
  • The window in front
  • The monitor with the mouse
  • Every monitor
  • An area (X, Y, width, height): Pick area fills these in, or wire them from Select Screen Area to choose it when the macro runs.
  • Choose an area when it runs: You drag a rectangle over the screen when the step runs; Esc or a right-click takes Cancel.
  • A picture file: Reads a PNG, JPEG, BMP, TIFF or GIF file instead of the screen.

Starts as: The window in front Can come from another step's output

Picture file

A file path

With A picture file: a PNG, JPEG, BMP, TIFF or GIF, e.g. from Take Screenshot.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

X

Pixels

With an area: physical pixels on the whole desktop.

Starts as: 0 Can come from another step's output

Y

Pixels

Starts as: 0 Can come from another step's output

Width

Pixels

Starts as: 800 Can come from another step's output

Height

Pixels

Starts as: 600 Can come from another step's output

Where it continues

  • Found: Continues here when it's found; its position is in the outputs below.
  • Not found: Continues here when it isn't found (e.g. the app has no window).
  • Cancel: Continues here when it's canceled.

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

Read QR or Barcode outputs
OutputGivesWhat it is
TextTextWhat the code holds.
TypeTextQR, EAN-13, Code 128, Data Matrix...
XPixelsThe middle of what was found: wire into Move Mouse to click it.
YPixels
LeftPixels
TopPixels

More in Screen