The Bytecode Club

Full Version: Onscreen console buffer limits
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been playing with this code quite a bit, recently adding remote functions to safari46's excellent modded 5.4.2.5.1 version.

I found a bug that I need help from more experienced AutoIT devs with - the console window eventually stops logging (even though the log files still get touched), probably because of the max buffer controlled by the system.  Does anyone know how to mitigate that, or just restart the bot every so often?
I found two articles that might help:


This one is AutoIt specific: http://www.autoitscript.com/forum/topic/...le-output/

This one is from Microsoft: http://support.microsoft.com/kb/99261

I would be interested in knowing if you get it to work.
Oh, wait! Try this:
Code:
RunWait(@COMSPEC &" /C CLS",@WORKINGDIR,@SW_HIDE)


I got that line of code from here.
Thanks, Snarg.  Actually, I built up the solution already.  I'll post the code tomorrow, but basically it uses an arbitrary buffer amount to delete lines from the start of the text in the Edit control as the amount of chars passes the given threshold.