Docs

RunMacro Documentation

Create your first robot, then go further as needed.

Clear step-by-step guides to create, run, and improve robots for repetitive computer work.

Docs Random Get Ref from TXT
📤 Random

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

The Get Ref from TXT command reads the first line of a TXT file into the clipboard.

Prerequisites#

  • Add Get Ref from TXT to the macro.
  • Prepare the data or target that Get Ref from TXT will use.

Supported modes#

  • RunMacro Runner

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).

Screenshots & video#

RunMacro Get Ref from TXT command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Get Ref from TXT command in RunMacro.

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.

When not to use it#

  • Do not use it when reading and reserving/removing a queue item must be atomic.

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.

Expected result#

After execution, Get Ref from TXT completes the described action and makes its result available to the next step.

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.

Limitations and failure cases#

  • It does not remove the line; fallback or multiple runners can cause repeated reads.

Tips & common mistakes#

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

Verification details#

  • commands/random_cmd.py
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.