PDA

View Full Version : gegtWindowCount() AFTER applyFilter()



dulux-oz
September 25th, 2013, 11:25
Hi Guys,

A simply one (I think) but I can't seem to crack it:

How do you get the number of Windows Instances in a WindowList AFTER a filter has been applied - get WindowCount() seems to be returning the number of Instances BEFORE the filter is applied - or am I (as I susspect) doing something wrong?

Thanks in advance

Moon Wizard
September 25th, 2013, 22:49
The getWindowCount() function will always get the total number of window instances. There is currently no function to get the total number of "visible" window instances.

The way I would do it with the current functions is to use the getWindows() function to get the list, and run each window through your onFilter function to determine whether it is displayed or not.

Regards,
JPG