Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - call prtsc http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CALL PRTSC
 Sends the current screen image to the printer.

 Useful in making hard-copy printouts of program screens
 for documentation, and in menu-driven applications to keep
 a consistent user-interface with other menu options.

 Same as simultaneously pressing the Shift-PrtSc keys.

 * Documenting screens
 @...SAY...GET...
 @...SAY...GET...
 @...SAY...GET...
 * CALL PRTSC   && comment out during program execution
 READ

 @...SAY...GET...
 @...SAY...GET...
 @...SAY...GET...
 CALL PRTSC     && remove comment to print documentation
 READ

 * Menu option
 PROMPT "....." MESSAGE "..."
 PROMPT "PrtSc" MESSAGE "Print current screen image"
 PROMPT "....." MESSAGE "..."
 MENU TO choice
 DO CASE
    CASE choice = 1
       <appropriate code>
    CASE choice = 2
       IF ISPRINTER()
          CALL PRTSC
       ELSE
          @...SAY "Error -- printer not ready"
       ENDIF
    CASE choice = 3
       <appropriate code>
 ENDCASE


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: ISPRINTER() PRNSTATUS()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson