Get the first line from a TXT file into the clipboard in RunMacro
RunMacro RunnerRunMacro 3.5+
The Get Ref from TXT command reads the first line of a TXT file into the clipboard.
Dialog & quick setup

- Add a Random › Get Ref from TXT command and choose the file.
- (Optional) enter a fallback URL + sheet name if needed.
- Use Paste from Clipboard to fill it. Save.
Options reference
Modes & when to use
RunMacro Runner
Best for
- 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.
Use an alternative when
- Do not use it when reading and reserving/removing a queue item must be atomic.
Before you run
- Add Get Ref from TXT to the macro.
- Prepare the data or target that Get Ref from TXT will use.
Example workflow
Example: take the top account
- Get Ref from TXT →
accounts.txt(first line to clipboard). - Use it to log in.
- When done, use Delete First Line to move to the next account.
Expected result: After execution, Get Ref from TXT completes the described action and makes its result available to the next step.
Tips & limitations
The trio Get Ref → process → Delete First Line forms a handy account-list processing loop.
- It does not remove the line; fallback or multiple runners can cause repeated reads.
Applies to RunMacro 3.5+ · RunMacro Runner · Windows 10/11
