Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

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 !
 
How about:
* the internal @SNAPSHOT function
* the SAVECON command in Vincent's 4CONSOLE plugin
 
@SNAPSHOT seems closer.

However, it saves the BMP to the ClipBoard.

I thought about something more "ready" like :

Save current window screen as a file on temp folder, so that later I could send it to me by email....
 
@SNAPSHOT seems closer.

However, it saves the BMP to the ClipBoard.

I thought about something more "ready" like :

Save current window screen as a file on temp folder, so that later I could send it to me by email....

Take a look at the SAVECSB command in Vince's 4CONSOLE plugin.
 
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.
 
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.
 
Back
Top
[FOX] Ultimate Translator
Translate