Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

Save console as HTML every X seconds #1603

Open Maximus5 opened 9 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 1604

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.

Reported by andre.borchert@yahoo.ca on 2014-06-05 22:10:14

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

Reported by ConEmu.Maximus5 on 2014-06-05 22:13:38

Maximus5 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.

Reported by andre.borchert@yahoo.ca on 2014-06-05 22:28:29

Maximus5 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...

Reported by ConEmu.Maximus5 on 2014-06-05 22:42:13

Maximus5 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 !

Reported by andre.borchert@yahoo.ca on 2014-06-05 23:23:57

Maximus5 commented 9 years ago
Here a working code example:

http://pastebin.com/MN4cAHMN

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

Reported by andre.borchert@yahoo.ca on 2014-06-06 01:55:07

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

----
PleaseVote ;-)

Reported by ConEmu.Maximus5 on 2014-06-06 08:28:36