Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing Internet Explorer popup window.

Status
Not open for further replies.

petermeachem

Programmer
Aug 26, 2000
2,270
GB
I am trying to capture a IE popup window to an image file. I use gdpicture and this makes it very easy to do once I have the window handle which is also pretty easy.
The problem is that the popup window can have scrollbars and I am only capturing the visible bit which is no good at all.
The only way I can see to do it is to use sendkeys to print to a pdf but I'm not keen on using sendkeys and the pdf generation is a bit slow anyway.
I'm sure there is a better way.
 
What if you temporarily full screen the popup window?

If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]
 
Having actually been shown an example of the window they need to capture, it is much longer than screen height so that won't work.
I desperately need to find the windows scrollheight from the windows handle.
Maybe there is a windows message I can send to get this info.
 
Use Spy++ to capture the messages that are sent during scrolling then send those message yourself.
 
You could try a program called snagit. Do a google search for their home page. This is a snippet from their overview page:

Profiles make it easy. SnagIt comes with eleven preset buttons that make screen capture a cinch! Capture a region of your screen, text from a window, the contents of a tall page that scrolls, all the images on a Web page, you get the idea.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top