Repository navigation
dos_printscrn
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Screen capture utility.
(dos_printscrn filename [mode [prompt]])
filename
The name of the bitmap file to create, or nil to copy the screen capture to the Windows Clipboard. The allowable file types are as follows:
| Value | Description |
|---|---|
| BMP | Windows Bitmap |
| JPG | JFIF Compliant |
| GIF | Compuserve Graphics Interchange |
| TIF | Tagged Image File Format |
| PNG | Portable Network Graphics |
mode
The screen capture mode. The allowable file types are as follows:
| Value | Description |
|---|---|
| 0 (Default) | Capture the primary display. |
| 1 | Capture the AutoCAD main window. |
| 2 | Capture the AutoCAD document window. |
| 3 | Capture the foreground-most window. |
| 4 | Capture a user-defined region. |
prompt
A string to be displayed to prompt the user when in user-defined region capture mode.
A string identifying the created bitmap file if successful.
nil on error.
Command: (dos_printscrn "C:\\test.bmp")
"C:\\test.bmp"