# Attach application

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

Element that connects an external application to an existing process.

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

Properties

\- Automation type: Desktop application automation type

\- Current user: \[bool] Get only current user processes

\- Title: \[String] Header of a connected application

\- Process name: \[String] Name of a process

\- Variable: \[LTools.Desktop.DesktopInst] Variable containing a reference to a connected process

\- Variable: \[LTools.Desktop.DesktopInst] Variable for saving a link to a connected process

\- Time-out\*: \[Int32] Element finish max time (ms)

```
C#
LTools.Desktop.DesktopApp app = LTools.Desktop.DesktopApp.Init(wf, "Calc*", null, 10000, true, LTools.Desktop.Model.DesktopTypes.UIAUTOMATION);

Python
app = LTools.Desktop.DesktopApp.Init(wf, "Calc*", None, 10000, True, LTools.Desktop.Model.DesktopTypes.UIAUTOMATION)

JavaScript
let app = _lib.LTools.Desktop.DesktopApp.Init(wf, "Calc*", null, 10000, true, _lib.LTools.Desktop.Model.DesktopTypes.UIAUTOMATION);
```
