Skip to content

Win Focus

Type: win-focus  ·  Package: Desktop Activities v1.0.0

Activates a window and brings it to the foreground (in front of the others). Useful when multiple applications are open and you need to make sure the bot is acting on the correct window, or when an action requires the window to be visible and in focus.

It locates the window by its selector, activates it and brings it to the front, waiting until timeout for it to reach the foreground.

ParameterEditorDescription
selectorselectorThe window to focus on.
ParameterEditorDescription
sessionsessionWin Attach session. If omitted, the selector must include the window.
timeoutnumberMaximum in ms to wait for the window to reach the front. By default 15000.
Win Focus selector = (ventana "ERP")
Win Click selector = (botón "Procesar")