home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / tools / pcap / pcap.txt < prev    next >
Text File  |  1991-02-28  |  6KB  |  120 lines

  1. Documentation for PCAP - A Screen Capture Utility.
  2. 2/28/91
  3.  
  4. What it does ...
  5.  
  6. PCAP saves the image on your computer monitor to a hard disk file. The file is 
  7. actually a DOS program (in COM format instead of EXE). When you run the 
  8. program, the image will be displayed on your screen. PCAP is a memory resident 
  9. program so it will steal some of your computers RAM but not much (only about 
  10. 4K). It will save text screens as well as CGA, EGA, MCGA and VGA graphics.
  11.  
  12. Why you might want to use it ...
  13.  
  14. About the only thing I do with it is save PRODIGY screens like the weather 
  15. maps. Actually, I have my PC setup to dial in to PRODIGY everyday and grab the 
  16. weather maps automatically so that they are waiting for me when I get to work 
  17. (OK, so I'm a nerd). I also use PAN, a program automation (animation?) utility 
  18. from PC-Mag, to do this. I'm including the PAN script file (minus my PASSWORD) 
  19. that I use in case you want to try this. You'll have to get PAN somewhere 
  20. else, though.  
  21.  
  22. Loading PCAP ...
  23.  
  24. Just run PCAP. The first time you do, it'll try to create a directory on drive 
  25. C:, namely "C:\PCAPT". This is the directory where all the images will be 
  26. saved.
  27.  
  28. Saving an image ...
  29.  
  30. Press ALT-P when you want to save the image on the screen. PCAP will sound 1 
  31. long beep followed by a series of short beeps followed by another long beep. 
  32. The last beep means that the image is saved. The length of time it takes to 
  33. save the image will depend on if it is text (very fast), low (fast) or high 
  34. (slower) resoultion graphics and on the speed of your computer. 
  35.  
  36. * You should not try to do anything else but wait while the screen is saving *
  37.  
  38. Displaying an image ...
  39.  
  40. All the images will be stored in files in the C:\PCAPT directory. They will 
  41. have names *like* 0C13445D and no extensions. These names are given by DOS as 
  42. the result of a "create unique file" call. Before you can display an image, 
  43. you must rename the file to <name>.COM where '<name>' stands for anything you 
  44. want. You might want to make it descriptive like MAP.COM or NEWS.COM. If you 
  45. just want to put the 'COM' extension on all the image files in the directory, 
  46. you can use the DOS RENAME command like this:
  47.  
  48.                            REN C:\PCAPT\*. *.COM
  49.  
  50. After you've but a COM extension (and optionally changed the file name) simply  
  51. type in the file name at the DOS prompt to see the image. It will remain on 
  52. the screen until any key is pressed.
  53.  
  54. Things you should know ...
  55.  
  56. I wrote this program a long time ago before I did any multitasking on my PC. 
  57. Consequently, I didn't pay much attention to trying to safeguard against 
  58. problems that can happen when TSR's and multitasking combine. About the only 
  59. thing I did do was to set a flag so that you can't accidently press the ALT-P 
  60. key combo too long and call the PCAP code again before it's done. This would 
  61. certainly screw up something. I use PCAP with Windows now and everything works 
  62. fine although I am careful to let it finish saving the screen before I do 
  63. anything. The only strange thing I've run across is that after saving a 
  64. Prodigy screen, the blinking box that acts as a cursor does not blink anymore 
  65. and the mouse won't work until a key is pressed. After any key is pressed 
  66. everything returns to normal.
  67.  
  68. PCAP won't work with the Hercules graphics modes or the 256 color MCGA nad VGA  
  69. modes. I never had time to do these. PCAP will work with most text modes and 
  70. all the CGA, EGA, MCGA and VGA graphics modes (with the exception of the 256 
  71. color modes). Once an image file is created, the graphics and text mode is 
  72. saved along with the image. The image can only be displayed on a system that 
  73. is capable of using the saved graphics or text mode. For instance, if you save 
  74. a VGA mode graphics image on one PC and try to display it on another PC with a 
  75. CGA card, you'll see a blank screen. The converse will work, however, because 
  76. the VGA supports all the standard graphics and text modes of the CGA.
  77.  
  78. If you use PCAP with an EGA, sometimes the colors that the image file displays 
  79. will be different that those at the time of capture. This is because the EGA 
  80. has write only registers and there is no foolproof way of saving the palette. 
  81. I have included a file called PRODEGA.DBG that will help you get the right 
  82. colors for PROGIGY when using an EGA. It is the input to the DOS DEBUG program 
  83. that pokes the right values for the palette registers into the image file. To 
  84. use it you'll need DEBUG. For an example, say your image file is a PRODIGY 
  85. weather map and has been renamed to "MAP.COM" and the colors are way off when 
  86. you display it because you have an EGA. If you have DEBUG, run it against 
  87. "MAP.COM" and redirect the input to "PRODEGA.DBG". The command looks like:
  88.  
  89.                       DEBUG MAP.COM < PRODEGA.DBG
  90.  
  91. Try running MAP.COM again.                      
  92.  
  93. Format of image files ...
  94.  
  95. The image file consists of the saved mode information, the code to display the 
  96. image and the image data itself. The image data is run-length coded. I'll send 
  97. the format to anybody who asks (see the end of this file for my e-mail 
  98. address). It's very simple to decompact. It works very well on PRODIGY 
  99. screens, even in the high resolution (640x480x16) mode. I get about 3.75:1 
  100. compaction on the maps and these are about the most complex screens in 
  101. PRODIGY. However, there is the potential that an image file will be greater 
  102. than 64K, especially in the high res VGA mode. If this happens then the image 
  103. file won't display because COM files are limited to a 64K image on disk. I've 
  104. never had this happen with PRODIGY screens but it does happen on some very 
  105. complex images from other programs.
  106.  
  107. The end ...
  108.  
  109. I know this is a very sparse program. There are many, many, features that can  
  110. be added to enhance it. If you have any suggestions, comment or ideas, you can 
  111. sent them to me on Prodigy or Internet.
  112.  
  113. - Tom Cervenka, Prodigy: CMGB18A, Internet: ctct100@uicvmc.uiuc.aiss.edu
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.