Jump to content

How to Print an MS DOS Screen WIN 98SE


blue_shoe12

Recommended Posts

Hey There Windows Tweak Freaks;

I've been doing an introductory course from Allenware to learn how to create Batch files.

I'm trying to find out why I can't use the function key "Print Screen"

----------------------------------------------------------------------------

From the Qbasic help file:

{

PRINT

Prints a text file while you are using other MS-DOS commands.

This command can print in the background if you have an output device

connected to one of your system's serial or parallel ports.

Syntax

PRINT [/D:device] [/b:size] [/u:ticks1] [/M:ticks2] [/s:ticks3]

[/Q:qsize] [/T] [[drive:][path]filename[ ...]] [/C] [/P]

}

{ GRAPHICS--Notes

Printing the contents of the screen

To print the contents of the screen, press the SHIFT+PRINT SCREEN key

combination. If the computer is in 320 x 148 x 200 color graphics mode and

if the printer type is color1 or graphics, the GRAPHICS command prints the

screen contents with as many as four shades of gray. If the computer is in

640 x 148 x 200 color graphics mode, GRAPHICS prints the screen contents

sideways on the paper (landscape orientation). You cannot use the

SHIFT+PRINT SCREEN key combination to print the contents of a screen to a

PostScript printer.

Effect on memory

The GRAPHICS command decreases the amount of available conventional memory.

Loading a new profile

If you have already loaded a printer profile and you want to load another

one by using the GRAPHICS command, the new profile must be smaller than the

one already loaded.

To load a new profile that is larger than the one currently loaded, you must

restart your system and then use the GRAPHICS command to load the new

profile.

If you try to use only the GRAPHICS command to load a new profile that is

larger than the currently loaded profile, MS-DOS displays the following

message:

Unable to reload with profile supplied

}

----------------------------------------------------------------------------

For example,

tried to print this help topic:

-PRINT-

Print the current topic to:

<@> Printer on LPT1

< > File

OK

Device fault

OK

I have REVOLUTIONS PACK 7 installed, I think this may be the cause/Solution thou it will not let me uninstall it. (it just reinstalls itself)

any ideas?

Link to comment
Share on other sites


The Print Screen key support is done in the computer BIOS. So, it is not possible to take advantage of it in the QBasic.

Basicaly the Print Screen event is handled by the BIOS before the key press event is reported to the DOS. So, the QBasic is not able to capture the Print Screen key. In order to reroute the print screen key it is necesary to capture BIOS interrupt by own routine. QBasic can not do it.

In case if the Windows is working, BIOS does not handle the print screen, any more. As, Windows handles the keyboard events without the BIOS. So, you should not to look for the standard DOS like Print Screen effect in Windows.

Windows Print Screen sends the captured data to the system clipboard, instead of printing them. So, you will have to paste the data to a Notepad or Paint, then to print it by yourself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...