Automate Desktop UI Text Typing (Smart Desktop Type) in RunMacro
Desktop ModeRunMacro 3.5+
Smart Desktop Type populates text and dynamic variables into desktop inputs via Windows UI Automation using instant Set Value or realistic keystrokes.
Dialog & quick setup

- In RunMacro, open the Keyboard › Smart Desktop Type command.
- Click 🎯 Pick Element and click the target TextBox control on your screen.
- In Text, enter the desired text or variable token (e.g.
{tax_id}). - Choose Input Mode: Set Value (instant UIA) or Keystrokes (simulated typing).
- Check Clear before typing to wipe existing content.
- Check Press Enter after typing to submit forms automatically.
- Click Save to insert the command into your workflow.
Options reference
Modes & when to use
Desktop Mode
Interacts via UIA ValuePattern or Win32 SendInput.
Best for
- Filling customer IDs, phone numbers, emails, and addresses from Excel into enterprise ERP/accounting fields.
- Entering passwords and login credentials with an immediate follow-up Enter keystroke.
- Typing long transaction memos without key drops or IME accent corruption.
- Clearing existing search filters before typing fresh search query strings.
Use an alternative when
- Web browser inputs (use Smart HTML Type).
- Global shortcut key combos unattached to specific inputs (use Key Combo).
Before you run
- Target desktop application displays the target input control.
Example workflow
Example: Fill company tax ID and press Enter to query
- Add a Smart Desktop Type command.
- Pick the 'Tax ID' input inside the e-invoicing desktop software.
- Set Text to
{tax_id}. - Choose Set Value mode, enable Clear before and Press Enter after.
- Execute — the tax code fills instantly and submits the search query automatically.
Expected result: Text is accurately populated into the target field, triggering optional Enter submissions.
Tips & limitations
Prefer Set Value mode for instantaneous input without interference from third-party Vietnamese IME utilities.
If the target app relies on physical key listeners (onKeyUp / onKeyDown events), switch to Keystrokes mode.
- High-security banking password inputs that block SetValue require Keystrokes mode.
Applies to RunMacro 3.5+ · Desktop Mode · Windows 10/11
