Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Random Get Ref from TXT
📤 Random

Get the first line from a TXT file into the clipboard in RunMacro

What it does

The Get Ref from TXT command reads the first line of a TXT file into the clipboard. If the file is empty or missing, it can fall back to an online URL (and create an empty file if needed).

When to use it

  • Take the top account/data item from a list.
  • Process one by one: get the first line then Delete First Line to advance.
  • Use a local file with an online fallback.

Configuration steps

  1. Add a Random › Get Ref from TXT command and choose the file.
  2. (Optional) enter a fallback URL + sheet name if needed.
  3. Use Paste from Clipboard to fill it. Save.

Every option explained

TXT file path

The source file to read the first line from.

Fallback URL + sheet + cache

When the file is empty/missing, fetch a random line from this online URL instead.

Real example

Example: take the top account

  1. Get Ref from TXT → accounts.txt (first line to clipboard).
  2. Use it to log in.
  3. When done, use Delete First Line to move to the next account.

Tips & common mistakes

The trio Get Ref → process → Delete First Line forms a handy account-list processing loop.
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.