Humm.. Well the fact that the code's working is enough for me. It isn't neat/efficient/bug free but as this was my first JScript code I'll be happy and live with it, and I have no time to implement additional features.
For the API, kindly note that it is Enum
ChildWindows - rather than EnumWindows - that is called. It should therefore return windows created by WLM, not every window on the desktop.
Nonetheless I still find it's a very useful feature to Aero Peek the contact list!
Thanks for your help,
Alex