Automatic screenshot on error
Posted: Wed Oct 13, 2010 2:12 pm
Hello,
What we want to do is to take a screenshot of our application when the user gets an error.
So in the exception handler we would put in some code like this:
activeWindow.screenShot(c:\Temp\Error_Screenshot_1.jpg);
before the error comes up on the screen it will take a screen shot of what the user was doing so they can send it through to us if they wish.
The error message will say something like:
"Send error detail and the screenshot to support? Yes/No"
Has this been done by anyone before? Looking forward to any good ideas someone may have.
Thanks for your time,
Sam
What we want to do is to take a screenshot of our application when the user gets an error.
So in the exception handler we would put in some code like this:
activeWindow.screenShot(c:\Temp\Error_Screenshot_1.jpg);
before the error comes up on the screen it will take a screen shot of what the user was doing so they can send it through to us if they wish.
The error message will say something like:
"Send error detail and the screenshot to support? Yes/No"
Has this been done by anyone before? Looking forward to any good ideas someone may have.
Thanks for your time,
Sam