Hi,

I'm trying to come up with some code that will monitor all 'created windows' on my system, for example, say I load up 'Calculator.exe' - I want my function to recognise that a new window has opened and return either it's caption or handle. For example the caption being 'Calculator'.

To explain why - I'm an automation engineer, writing test tools for a software development company I work for. I'm using a rational scripting tool, but it has some unreliable 'on windowcreate call......' routines, and they only seem to work about 75% of the time. So I'm looking to implement some custom code to do the same thing (it's used for catching and handling error messages).

Any help appreciated..