# Text input

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-a78d57355fbbc9058b8903a0cd23cf4fa3a299f5%2F0%20\(118\).png?alt=media)

Element entering text in a selected control element. The component works correctly only inside the Connect to an Application container.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-e086f19997af0cb40b6a857688914def73dc1930%2F1%20\(114\).png?alt=media)

Properties

\- Search template: \[String] Control element search template

\- Element: \[LTools.Desktop.Model.DUIControl] Reference to a control element

\- Text\*: \[String] Text entered

\- Timeout\*: \[Int32] Maximum waiting time for process completion (ms)

```
C#
LTools.Desktop.DesktopApp app = LTools.Desktop.DesktopApp.Init(wf, null, "Calc*", 10000, true, LTools.Desktop.Model.DesktopTypes.UIAUTOMATION);
//Search pattern
app.TextInput("{\"AutomationID\":\"CalculatorResults\",\"AUIProperties\":[],\"TextSearchMode\":0,\"IsRoot\":false,\"IsQuickSearch\":false}", "11");
//Component link
LTools.Desktop.Model.DUIControl el = app.FindElement("{\"AutomationID\":\"CalculatorResults\",\"AUIProperties\":[],\"TextSearchMode\":0,\"IsRoot\":false,\"IsQuickSearch\":false}");
app.TextInput(el, "11");

Python
app = LTools.Desktop.DesktopApp.Init(wf, None, "Calc*", 10000, True, LTools.Desktop.Model.DesktopTypes.UIAUTOMATION)
#Search pattern
app.TextInput("{\"AutomationID\":\"CalculatorResults\",\"AUIProperties\":[],\"TextSearchMode\":0,\"IsRoot\":false,\"IsQuickSearch\":false}", "11")
#Component link
el = app.FindElement("{\"AutomationID\":\"CalculatorResults\",\"AUIProperties\":[],\"TextSearchMode\":0,\"IsRoot\":false,\"IsQuickSearch\":false}")
app.TextInput(el, "11")

JavaScript
let app = _lib.LTools.Desktop.DesktopApp.Init(wf, null, "Calc*", 10000, true, _lib.LTools.Desktop.Model.DesktopTypes.UIAUTOMATION);
//Search pattern
app.TextInput("{\"AutomationID\":\"CalculatorResults\",\"AUIProperties\":[],\"TextSearchMode\":0,\"IsRoot\":false,\"IsQuickSearch\":false}", "11");
//Component link
let el = app.FindElement("{\"AutomationID\":\"CalculatorResults\",\"AUIProperties\":[],\"TextSearchMode\":0,\"IsRoot\":false,\"IsQuickSearch\":false}");
app.TextInput(el, "11");
```
