Win Attach
Win Attach
Section titled “Win Attach”Type: win-attach · Package: Desktop Activities v1.0.0 · Output: ZoanDesktopSession
Connects to a Windows window and returns a session (ZoanDesktopSession). It is the starting point for interacting with a desktop application: once connected, other activities act on that window.
How it works
Section titled “How it works”Locate the window indicated by the selector (waiting until timeout for it to exist) and open a session. You have two modes:
- With
body: Activities inside inherit the session automatically (you don’t configuresession). - No
body: save the session to an output variable; pass it assessionto the other activities and close it with Win Close.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The window to connect to. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
timeout | number | Maximum time in ms to wait for the window to exist. By default 30000. |
Subflows (lanes)
Section titled “Subflows (lanes)”body optional
Section titled “body optional”Activities to execute with this window. If omitted, returns the session as output.
Output
Section titled “Output”Returns a ZoanDesktopSession. Pass it as session to other desktop activities.
Example
Section titled “Example”Win Attach selector = (ventana "Bloc de notas") └─ body: Win Type selector = (área de texto) text = "Hola mundo" Win Key Press keys = "ctrl+s"