rheostat2718 / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
7 stars 1 forks source link

Save console as HTML every X seconds #1604

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ConEmu can produce ready to use HTML code of the console output using the menu: 
"Edit/Copy as HTML"

It would save a lot of trouble with screenshot apps if ConEmu could 
automatically save the console output in HTML to a file and also define the 
time interval to repeat these "HTML screenshots" in seconds.

That would be great for remote monitoring of a console via webserver plus saves 
a lot on data transfer.

Original issue reported on code.google.com by andre.bo...@yahoo.ca on 5 Jun 2014 at 10:10

GoogleCodeExporter commented 9 years ago
Not sure, what are you trying to do. Thought, sharing your log file via network 
is better way.

Original comment by ConEmu.Maximus5 on 5 Jun 2014 at 10:13

GoogleCodeExporter commented 9 years ago
Right now I take a screenshot of the console every 10 seconds and publish that 
picture via webserver for simple remote monitoring of what is going on in the 
console.

The point is that I really need to "see" the console itself, the log file 
created by my app is not sufficient. And it needs to be seen by many people, 
thus the webserver.

If the "Edit/Copy as HTML" function of ConEmu could be extended to make "HTML 
screenshots", it would reduce the data transfer plus eliminate the screenshot 
app and the trouble which comes with it.

Original comment by andre.bo...@yahoo.ca on 5 Jun 2014 at 10:28

GoogleCodeExporter commented 9 years ago
So, you have you console (ConEmu) open and you are doing something with it? 
And, you want to produce html file?

What is condition to make "screenshot"? Just a timer?
You have ConEmu window always in focus?
Are you using back scroll buffer?

I believe, ConEmu must not have "task scheduler" ability.
But! You CAN use GuiMacro to copy your console as html,
and write the clipboard to the file.
That is can be done with simple script and standard Windows scheduler.
Nothing need to be implemented (new) in ConEmu.
Just use existing features...

Original comment by ConEmu.Maximus5 on 5 Jun 2014 at 10:42

GoogleCodeExporter commented 9 years ago
Thanks for your feedback. Mostly the console is minimized. Yes, it would be 
perfect to save the console output as pure html to file every 10 seconds. The 
Windows task scheduler only allows 1 minute as the minimum interval but I can 
easily program a tool to call process->start() to run any script every x 
seconds.

I'm not sure about 'back scroll buffer', I just use the default settings :)
I tested the feature "Log console output" but it appends the output so the 
logfile grows very quick and there is no option to overwrite the existing log 
file. 

I will study GuiMacro now, very interesting !

Original comment by andre.bo...@yahoo.ca on 5 Jun 2014 at 11:23

GoogleCodeExporter commented 9 years ago
Here a working code example:

http://pastebin.com/MN4cAHMN

One question, can GuiMacro save the clipboard html to file ? 

Original comment by andre.bo...@yahoo.ca on 6 Jun 2014 at 1:55

GoogleCodeExporter commented 9 years ago
Not now. Next build...

----
PleaseVote ;-)

Original comment by ConEmu.Maximus5 on 6 Jun 2014 at 8:28