How can I create a a list of all application windows?

In Studio, how can I produce a list of UiElements of all open windows for an application (e.g. notepad.exe). I would then want to iterate through this list of found elements and do some other work as each window is made active.

Hi,

Can you try the following sample?

w = new UiPath.Core.Window(currentItem.MainWindowHandle)

Sample
Sample20240319-1.zip (3.2 KB)

Regards,

1 Like

Works great! Thank you!!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.