List All Top-Level Windows

This script will display a message box detailing each top-level window. Modifying this sample, you can leverage performing actions on more than just the window where the gesture was drawn.