Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!swrinde!howland.reston.ans.net!ix.netcom.com!netcom.com!garys
From: garys@netcom.com (Gary Schmid)
Subject: Re: Post Notifier Processing to Capture Screen
Message-ID: <garysDMrvsI.J8K@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
X-Newsreader: TIN [version 1.2 PL1]
References: <1996Feb14.124042.16182@es.dupont.com>
Date: Wed, 14 Feb 1996 15:45:54 GMT
Lines: 35
Sender: garys@netcom4.netcom.com

Bob Biros (birosra@ldoc01.lvs.dupont.com) wrote:
: After a runtime notifier occurs, I record some key information 
: including the current stack to a pc file.  I would also like
: to get a screen capture of what the user sees, either the entire
: windows desktop or at least the ST application window.  I considered
: starting a windows program from ST that would do a screen capture but
: cannot find one that can do this via just running the pgm.exe (perhaps
: with a parameter to indicate capture now  e.g. SCRNCAPTR.EXE /NOW).

: Any ideas on how to accomplish a screen capture after the notifier?

: I use VW 1.0 (soon to be 2.5) on a Windows 3.1 platform.
: Thanks in acdvance.

:  ----------------------------------------------------------------------------------------------------------
:  birosra@ldoc01.lvs.dupont.com 
:  Bob Biros
:  Dupont Company
:  Barley Mill Plaza Bldg 35 Rm: 2159
:  P. O. Box 80035
:  Wilmington, DE 19880-0035
:  (302) 992-4694
:   -----------------------------------------------------------------------------------------------------------
:  | The ideas/opinions expressed herein are strictly my own and are     |
:  | not those of Dupont.  User will be solely responsible for their use.     |
:   -----------------------------------------------------------------------------------------------------------

You can print windows via VW using the Document class.  ScheduledWindow
responds to #asImage (via DisplaySurface) and Document allows you to add 
an image to it. Be sure the window is visible; i.e., raise it.

Hope that helps.

Gary Schmid
garys@netcom.com
