Skip to content

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.

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 configure session).
  • No body: save the session to an output variable; pass it as session to the other activities and close it with Win Close.
ParameterEditorDescription
selectorselectorThe window to connect to.
ParameterEditorDescription
timeoutnumberMaximum time in ms to wait for the window to exist. By default 30000.

Activities to execute with this window. If omitted, returns the session as output.

Returns a ZoanDesktopSession. Pass it as session to other desktop activities.

Win Attach selector = (ventana "Bloc de notas")
└─ body:
Win Type selector = (área de texto) text = "Hola mundo"
Win Key Press keys = "ctrl+s"
  • Open App — launch the application before connecting.
  • Win Close — close the window and release the session.
  • Win Focus — bring the window to the front.