DocsKeyboardSmart Desktop Type

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

RunMacro Smart Desktop Type command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Smart Desktop Type command in RunMacro.
  1. In RunMacro, open the Keyboard › Smart Desktop Type command.
  2. Click 🎯 Pick Element and click the target TextBox control on your screen.
  3. In Text, enter the desired text or variable token (e.g. {tax_id}).
  4. Choose Input Mode: Set Value (instant UIA) or Keystrokes (simulated typing).
  5. Check Clear before typing to wipe existing content.
  6. Check Press Enter after typing to submit forms automatically.
  7. Click Save to insert the command into your workflow.

Options reference

🎯 Pick Element

Interactive target picker overlay to capture target TextBox UIA properties.

Text

Content to fill into the input field (supports variables such as {full_name}, {email}).

Input Mode

set_value (instant in-memory UIA ValuePattern assignment) or keystrokes (simulated physical keypresses).

Clear before

Automatically selects all existing text and deletes it before typing new content.

Press Enter after

Dispatches an Enter keystroke immediately after text input to submit forms or search filters.

Type delay ms

Inter-keystroke delay in milliseconds when using Keystrokes mode (default 0ms).

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

  1. Add a Smart Desktop Type command.
  2. Pick the 'Tax ID' input inside the e-invoicing desktop software.
  3. Set Text to {tax_id}.
  4. Choose Set Value mode, enable Clear before and Press Enter after.
  5. 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

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.