Matthew: How, and from where, would you execute your code to the get caption of an open window?