How to use Attach Window with Active Winodw

Can anyone provide an example of how to use the Get Active Window Activity with Active Window activity as i am not sure of where to use or how to use it.

Hai @pankajs3…
U can see more info about the Get Active window activity
https://activities.uipath.com/docs/get-active-window

1 Like

@Nandhuba
I know that but i am looking example related Attach Window with Active window

Hi,

Hope the following helps you.

Let’s assume there are 2 notepad windows which have same title.

The following workflow types “test” into the window, even if the window is not active then. This means the window is selected when use Get Active Window activity and we can operate something for the window later.

Regards,

1 Like

@Yoichi
without giving the selector of window how will recognize that for witch window attach window will work?

Hi,

Get Active Window activity can output UiPath.Core.Window instance which is related with OS window handle. (as wnd in the above sample) And Attach Window activity can identified which window should be operated using the variable (wnd).

Regards,

1 Like

Haii @pankajs3

Refer this :grinning: