Top

Tags


Roadkill .NET Wiki

Google ads

Recommended reading


Search

Wednesday
Mar182009

Automated browser screenshot capture

This small windows forms application does the following:

  • Opens a website you specify in Internet Explorer, Firefox, Safari and Opera.
  • Resizes the window to the size you set.
  • Takes a screengrab of each one.
  • Optionally closes each browser.

You can specify the browser paths and path to save the screenshots (which are saved in PNG format) to.

The screenshot mechanism is courtesy a class from of this article. The remaining code is some straight forward windows enumeration via the winapi and PostMessage.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
« Image conversion in C# | Main | C# Pronounceable password generator »