Thanks René I tried your suggestions, but couldn't seem to get the window using GetFocus(). I used the GetFocus() win32 api call but that returns a handle for the currently focused object on the window (e.g button, datawindow). From that I was able to work my way up the parent tree until I found a response window so it was looking promising, but then I found it doesn't work unless the application has focus. I still need to determine if a user has left a modal window open and then moved onto another application.
↧