Screen Capture (Console Mode)

Hi!

I have a script that runs an external EXE, console mode. Sometimes this EXE aborts.

On those cases, I'd like to capture a kind of a screen shot and send it to me by email. Cause I wanna see the messages it might had issued right before it ended.

@READSCR is not useful cause it can't capture the whole screen.

Other ideas ?

I'm still on version 11....

Thanks !
 
May 20, 2008
11,400
99
Syracuse, NY, USA
If he really wants an image ... there's @SNAPSHOT to get a bitmap into the clipboard ... then ...

I've read that this can be done with a windows script (WSC) and that the VB function SavePicture is involved. I found no definitive code. I imagine this will produce a BMP file ... probably pretty big.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
My guess is Senhor Baltieri would prefer a text image of the screen. The batch file below might do exactly what he needs:

Code:
@echo off
echo %@consoleb[0]
on errormsg savecsb screen.dmp
console-program-to-report

and use LIST or VIEW to look at screen.dmp

The purpose of the @CONSOLEB[0] funciton is to create a new, empty console buffer, so on completion of the program under test only its output would be in the buffer.

BEWARE! NOT FULLY TESTED! The @consoleb[0] and savecsb do work. ON ERRORMSG should work if the program being tested has an exitcode other than zero (0), which may not occur even when it displays error on screen. Should that be the case, SAVECSB would need to be executed unconditionally.
 
Similar threads
Thread starter Title Forum Replies Date
samintz How to? Screen capture with color Support 13
M No line wraps if last line of the screen buffer is reached Support 5
krischik Take Command opens with (almost) white screen and then hangs Support 3
O Why this screen? Support 10
M TCC screen text bright colors not as bright in 24 as 23 Support 5
vefatica Win10, alternative screen buffer, cursor doesn't blink Support 11
R Vertical scroll bar disappeared with SCREEN Support 6
T How to? Show the values of batch variables on the TCC screen Support 21
T How to? Off screen move? Support 3
G Odd problem - screen brightness Support 4
R Find in screen buffer - find next behavior Support 0
fishman@panix.com Can I start TCC in full screen mode? Support 9
G Linux curses (full screen) crashes TC Support 1
L w10 - half screen Support 2
I TC "Registering" but NOT Registering, Now Hung on TCMD Option Screen Support 2
Jay Sage Ctrl-C Not Working Reliably to Copy Screen Content Support 4
L Full Screen in Office 2013 theme chars missing Support 8
H V15 installer difficult to use with JAWS screen reader Support 0
knudvaneeden cls in TakeCommand screen does not clear full screen Support 26
G WAD Pipe clears screen Support 2
S How to? enable or disable screen saver password Support 5
J Color command and Screen Buffer. Support 2
H VIEW not "screen reader friendly: Support 7
fishman@panix.com Is there a way to get the HELP screen to open maximized? Support 4
O Pausing screen? Support 2
J Utility to Save/Restore current screen Support 16
Joe Caverly Clearing a section of the screen works in CMD, not in TC Support 2
Roedy Screen background colours Support 1
A TakeCommand screen width Support 1
I Environment variable in OPTION screen? Support 2
G Cls Does not appear to clear screen Support 8
D TCC - Full Screen/History window conflict - workaround? Support 4
Mordachai How to capture all console output from a TCMD session? Support 4
C How to? Capture keystrokes? Support 1
vefatica Console not redrawn in BTM or with multiple commands Support 4
vefatica ShutdownPlugin not called when I X the console? (just curious) Support 4
vefatica Console popup windows don't work correctly Support 0
vefatica Cancelling selection in the console? Support 7
G Console exe up / down history Support 8
vefatica Console cursor height in Win 10 Support 3
vefatica BTM, elevated, console window caption? Support 4
vefatica TCEXIT not executed if I X the console Support 4
vefatica TYPE resets console tab settings Support 14
vefatica Undesired scrolling in Windows 10 enhanced console. Support 2
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
P No linefeed on last line of console window Support 2
fishman@panix.com TCC v22 & the Windows 10 Console Support 5
C TCMD not hiding the console Support 1
jaltman tcmd 21.0.19 win10 16179 console window loses content Support 2
vefatica Console output slower that before Support 8

Similar threads