UI Get Element Text

Read a control's text into a variable.

UI AutomationUIAutomationGetTextWindows only

What it does

Read a control's text into a variable.

Parameters

ParameterTypeRequiredDefaultDescription
Window title (substring)string
Required
Example: Calculator
Supports variables
Find control bydropdown
Name · AutomationId · ControlType
RequiredName
Control identifierstring
RequiredName / AutomationId / ControlType depending on 'Find by'.
Example: OK
Supports variables
Store result invariable
Required
Example: value

More UI Automation commands

Ready to automate your busywork?

Start your free 10-day trial today. No credit card, no commitment.