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

Extract the username from an email in RunMacro
What it does
The Extract Email Username command reads the email in the clipboard, takes the part before @ (the username), and writes the result back to the clipboard. E.g. user@gmail.com → user.
When to use it
- Generate usernames from a list of emails.
- Process bulk email data in a sign-up workflow.
- Take the name part to fill a "username" field.
Configuration steps
- Put the email in the clipboard (Copy Text from the email field, or Set Clipboard).
- Add a Keyboard › Extract Email Username command.
- Save. After running, the clipboard holds the username; use Paste from Clipboard to fill it.
Real example
Example: fill a username from an email
- Set Clipboard =
john@gmail.com. - Extract Email Username → clipboard becomes
john. - Click the username field, Paste from Clipboard.
Tips & common mistakes
If the clipboard has no
@, the command leaves the content as-is and logs a note.
RunMacro