Selecting Active Windows

Hi guys,

I’m doing some jobs in invoke code, i want to dealing with active windows via using vb.net. There is a activity but i cannot use inside of the invoke code. Anyone know what is the code “active window” or how can i handle it ?

I want to do like that :slight_smile:
Ex : ActiveWindow(“EXCEL”)
ActiveWindow(“NOTEPAD”) etc.

Thank you.

Hi,

Do you need an expression like GetActiveWindow activity?
If so, the following might help you.

Dim w As UiPath.Core.Window = UiPath.Core.Window.FromActiveWindow()

Then, for example, maximize window

w.Maximize()

Regards,