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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAVE SCREEN problems on FP2.5

Status
Not open for further replies.

kevp

Programmer
Apr 17, 2000
3
GB
I'm trying to capture the contents of a screen in a DOS app under Win95/Win2000 for outputing to a printer. I am using SAVE SCREEN TO MSCREEN then SAVE ALL LIKE MSCREEN TO SCREEN.TMP. I can then parse the SCREEN.TMP file to extract the relevant screen text.

However, I am having problems with the contents of a LIST-type GET field on the screen which is populated by PROMPT FIELD. When the list contains more entries than can be displayed, no matter which entry the pointer is pointing to at time of capture, the SAVE SCREEN TO MSCREEN command always shows the screen with the list box pointer at the top of the list (its initial position when first viewing the screen.) It is therefore impossible to scroll to the bottom of the list and capture the screen showing these bottom most entries.

I've tried patching FP2.5 to FP2.5b with no joy. I've also tried various combinations of SHOW GETS, SAVE SCREEN/RESTORE SCREEN just before the capture without success. I'd prefer to avoid 3rd party solutions, if at all possible.

Any help would be appreciated!

Cheers

Kev

 
As majority of commands may output to screen, to file or to print, i do not understand..
 
For clarification:

I'm trying to get a copy of the current screen, i.e. a screen dump. (To do this under DOS/Win95, we call a binary file PRINT.BIN which contains chr 205, chr 5, chr 203, and this generates a print screen action. Under Win2000 however, this doesn't work and crashes the system.)

One of the fields on the screen is a LIST BOX which is populated by fields from a cursor. The LIST BOX is 8 rows deep and the anomaly becomes an issue when there are more than 8 items in the cursor and an item lower the first 8 is highlighted.

Regardless of which row in the list is selected, the SAVE SCREEN command always shows the list with the top row selected, i.e. NOT what is on screen! The other GET fields show as they are.

Hope this helps your understanding.

Kev
 
kevp,
probably it is obsolete,
but "dos" printscreen copy to print you may do
with .pif file, excluding "Printscreen" key in Miscellaneous.
If you prefer file picture of screen,
off line printer, and see the most fresh file .spl in
c:\WINNT\system32\spool\PRINTERS\
Tesar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top