The Editing Bar Series: Fill Forms and Let TextExpander Do the Tabbing For You With Key Press Macros

Key Press macros let a TextExpander Snippet press Tab, Return, and other keys for you. See how to insert them from the Editing Bar and use them to fill online forms, move through spreadsheets, and more.

Close-up of a paper form with Name, Company, Address and City fields, with the TextExpander logo

Welcome to the Editing Bar series. You can think of the Editing Bar as your toolbox of snippet wizardry. Or just as a bunch of really useful macros. Both are true. If you’re unfamiliar with the term “macros”, don’t worry. They are essentially little placeholders in a snippet which get switched out for other useful things, such as a special symbol getting replaced with today’s date, (no matter what “today” is).

This post covers the Key Press macros, a savior for keen online-shoppers and frequent form-fillers.

What are Key Presses?

TextExpander calls upon the Key Press macros to programatically replicate you physically pressing the Tab, Enter, Return and Escape keys. This means you can build snippets that do more of the work for you.

Here’s where to find the Key macros:

Screenshot of the TextExpander editing bar key press menu with Enter, Esc, Return, Tab, Clipboard and Insert Snippet

How to Insert Key Presses into Snippets

To insert any of the Key Press macros, hit the keyboard icon and choose Enter, Esc, Return or Tab to insert into your snippet.

Screenshot of the TextExpander Snippet editor for a Weekdays Snippet, abbreviation ;week, before key presses are added

And here it is in action:

Empty table with the cursor in its first cell, before a Snippet fills it using Return key presses

Have you ever wondered why there are both Return and Enter keys? We did, and found some pointers. The short answer… history.

How to Fill in Forms

To fill in a form, you’ll need the info you want in each field separated by Tabs. Place a Tab macro in the same places you’d have to press the Tab key if you were filling out the form manually.

Here’s an example snippet:

Lisa Newton%key:tab%lisa@newton.com%key:tab%123 Market Street San Francisco, CA%key:tab%415-555-1212

And here it is in action:

Web contest entry form with Name, Email, Address and Telephone fields, to be filled by a Snippet using Tab key presses

Using Key Presses in Spreadsheets

Use the Escape key to expand in a spreadsheet and make it treat a carriage return as a new row.

Here’s an example snippet:

%key:esc%Cell A Cell B
Cell C Cell D

And now, working its magic:

Spreadsheet with Cell A to Cell D being filled in by a TextExpander Snippet

Other Uses

Insert Key Presses into a variety of snippets, wherever you need to enter the same data into multiple fields. For example:

  • When sending emails, use a single snippet to fill in the Subject line, Tab to the email Body, and fill out the body.
  • Various repetitive form-based data entry, such as in Salesforce or an EMR.
  • Adding bits and pieces to spreadsheets and expanding data into the correct cells.

Don’t forget to check out other posts in this series, where we continue to unravel the Editing Bar and its mighty power.

For more tips and tricks, join us on Facebook and Twitter.

Keep reading

View all posts →
TextExpander 7.8 featured Explore TextExpander TextExpander 7.8: Snippet Creation, Team Management, and Searching is Easier Than Ever write medical progress notes faster Explore TextExpander How To Write Medical Progress Notes Faster A woman sat at a desk creating an invoice Explore TextExpander How to Make Invoicing Easier: Tools, Tips and Templates
The Editing Bar Series: Fill Forms and Let TextExpander Do the Tabbing For You With Key Press Macros