(Can I do Print Screen to Clipboard programmatically?).
I am running on NT. I need to write a program to capture the Screen
Display
of a DOS application. Using the "Print Screen" key will not work for me because it is a manual process. (Can I do Print Screen to Clipboard programmatically?).
I suggest to use "Print Screen". You can use keybd_event() with
VK_PRINT as parameter to copy the DOS screen into the clipboard..
You get only the text (neither graphic nor the text attributes).
Win32 offers special functions for controlling the console. You can use ReadConsoleOutput() to get the characters on the console if you just
need a
hardcopy of the text.
For really controlling a DOS application, you have to write a shell
programm, which creates three pipes. Then you are able to start your
programm with CreateProcess() and redirecting stdin, stdout and stderr
to
your pipes. And in your shell programm you are able to handle stdout and
even put it to the console (using GetStdHandle() and WriteConsole()).
gu
Axel K÷ster wrote:
I suggest to use "Print Screen". You can use keybd_event() with
VK_PRINT as parameter to copy the DOS screen into the clipboard..
You get only the text (neither graphic nor the text attributes).
Really? I get only a full-screen bitmap (or a window-sized bitmap if the
Alt
key is held down).
Cheers,
- Jim
This only work in fullscreen text mode
I am running on NT. I need to write a program to capture the
Screen Display of a DOS application.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,063 |
Nodes: | 17 (0 / 17) |
Uptime: | 91:18:15 |
Calls: | 501,401 |
Calls today: | 4 |
Files: | 109,432 |
D/L today: |
5,158 files (10,023M bytes) |
Messages: | 296,863 |