How to get the ID of a window according to some particular condition?

Printable View