Print Screen

Is there a command to print the entire contents of what's on screen to the printer?
cheers

Comments

  • : Is there a command to print the entire contents of what's on screen to the printer?
    : cheers
    :

    Yes! There are several ways to do it. If you're talking about text (STDOUT) that's even easier.

    I don't have an example in QB yet, but I'll work on it. I'll try to have it ready to post next time I'm online.

    I do have a very small ASM example, I'll post it next time too. If you assemble it you could use the SHELL command to run it from QB.


  • : Is there a command to print the entire contents of what's on screen to the printer?
    : cheers
    :
    OK! I found the ASM example. This is a BATCH file that invokes DEBUG to assemble the program.

    Here's the code. Save it as PRINTSCR.BAT
    [code]
    Goto start

    a100
    INT 5 ;Executes BIOS interrupt 5, Print screen service.
    RET ;Takes you back to DOS

    rcx
    3
    w
    q

    :Start
    DEBUG PRINTSCR.COM < %0.BAT
    [/code]
    Now run this BATCH from the dos prompt. The resulting program will be PRINTSCR.COM

    To call this from QB:
    Put PRINTSCR.COM into the same directory as the QB program.
    Call it with the shell command.
    [code]
    SHELL "PRINTSCR"
    [/code]
    I haven't tried it from QB yet, but it should work.

    Oh! It only works with text. If you want to print a graphics screen, you'll have to talk to someone else.

    I'm still working on the all QB code.



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion