home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix CD 2.0
/
Phoenix_CD.cdr
/
24b
/
keyboard.zip
/
NOPRTSC.DOC
< prev
next >
Wrap
Text File
|
1986-02-25
|
2KB
|
31 lines
IBM PrtSc Protector
(COMPUTE! Magazine February 1986 by Marc Sugiyama)
One major complaint with the IBM PC keyboard is the position of
the PrtSc key. If your finger goes astray and accidentally hits both
Shift and PrtSc, the PC dumps the screen to the printer. Its annoying
particularly when you're printing a long document of when you don't
have a printer attached. If there's no printer, the PC locks up until
it figures out that there's nothing to print to.
Nevertheless, it's nice to have the screen dump capability handy
when you need it. You wouldn't want to complete disable the function,
but it would be nice if it were harder to call by accident.
"PrtSc Protector" offers a good compromise. It's a short machine
language program that patches into the PrtSc function and distinguishes
between the two Shift keys. If you press the right Shift key with
PrtSc, nothing happens. If you press the left Shift key with PrtSc,
you get the screen dump you really wanted.
NOPRTSC.BAS creates the machine language file NOPRTSC.COM. You
activate NOPRTSC.COM simply by typing NOPRTSC at the DOS prompt. The
resident portion of NOPRTSC.COM takes 280 bytes of memory.
If you want to dump graphics screen to the printer, install
NOPRTSC.COM after installing GRAPHICS.COM. Don't try to install
GRAPHICS.COM more than once, or the computer will crash. Likewise,
don't try to install NOPRTSC.COM more than once. When NOPRTSC.COM is
installed successfully, it returns a zero in the ERRORLEVEL variable;
otherwise, it returns a one.