Calling Print Screen

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators:Administrator, Global Moderator

Post Reply
Guest
Calling Print Screen

Post by Guest » Sat May 10, 2003 2:26 am

Is there a way to call "Print Screen" from within a Qb 4.5 program running under Win 98? I am using a Screen Capture program that only allows me to use the Print Screen key while QB is runs.

Guest

Yes.

Post by Guest » Sat May 10, 2003 3:41 pm

Here's a copy of the header I've placed in one of my very old programs . . .
' PrntScrn.Bas
'
'Notes:  To print graphics you must use GRAPHICS.COM loaded in AutoExec.bat
'       don't forget to turn on SetVer.exe (cause the one that is currently
'       on this hard drive is expecting DOS V 6.22).
'
'        Reminder of syntax for GRAPHICS.COM is: "GRAPHICS.COM {printer name}"
'       Where PRINTER NAME is any one of the few printers listed in
'       GRAPHICS.PRO (I'm test printing with: "GRAPHICS.COM HPDefault" and
'       it works alright but in landscape mode)
'
'        Speaking of modes, the following code is for SCREEN 0, 1, & 2 (I've
'       tested in SCREEN 12 and it comes out in portriat mode but you'll lose
'       some of the screen info.
'
TYPE RegType
 AX AS INTEGER
So, you'll need to have both:

GRAPHICS.PRO ANDGRAPHICS.COM

accessable (and preferrably RUNNING) when you are going to use your program to PRINTSCREEN.

--MiggyD

Post Reply