What I'm trying to do is take a screen shot of the window in the foreground when something unexpected has happend. So say I'm in IE and I get an unexpected IE dialog appear that has a javascript error and details... but it could also be any other dialog. And it could be from any other app, not IE.
I tried this but it didn't seem to work:
Dim MyForm as Ranorex.Form Adapter.DefaultSearchTimeout = 30000 MyForm = "//form[@hasfocus='true']"Thanks,
Aracknid