[comp.sys.ibm.pc] Automatic PrtSc

wagle@iuvax.UUCP (02/11/87)

  On a IBM AT:

  How do I make my compiled basic program activate the Screen Printer (PrtSc)
itself (automatically)?

Perry Wagle, Indiana University, Bloomington Indiana.
...!ihnp4!inuxc!iuvax!wagle	(USENET)
wagle@indiana			(CSNET)
wagle%indiana@csnet-relay	(ARPA)

cagordon@watnot.UUCP (02/20/87)

In article <118000002@iuvax> wagle@iuvax.UUCP writes:
>  How do I make my compiled basic program activate the Screen Printer (PrtSc)
>itself (automatically)?

A while ago, I got this program out of a magazine (I think it was PC-World
but I'm not sure): It was for an IBM PC. I do not know whether it will work
when compiled or if it will work on the IBM AT

10 ' Set up a callable PRTSC to perform a screen dump
20 ' To execute: CALL PRTSC
30 '
40 DEF SEG
50 S$=CHR$(&H55)+CHR$(&HCD)+CHR$(&H5)+CHR$(&H5D)+CHR$(&HCB)
60 PRTSC=VARPTR(S$)+1:PRTSC=PEEK(PRTSC)+256*PEEK(PRTSC+1)

As you probably have already guessed, the numbers in S$ make up the code which
calls the screen dump routine. You might also consider poking the numbers to
some area of memory directly but with the above program, this area is setup
for you and you know it won't be overwritten (unless you use S$ again in the
program)

--
Chris Gordon                     UUCP: {abunchasystems}!watmath!watnot!cagordon
U of Waterloo, Ont         CompuServe: 72030,104
				CSNET: cagordon%watnot@Waterloo.CSNET
-------------------------------------------------------------------------------
"I always have fun 'cause I'm out of my mind!!!" - ZTP