The Bytecode Club
Onscreen console buffer limits - Printable Version

+- The Bytecode Club (https://the.bytecode.club)
+-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1)
+--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97)
+--- Thread: Onscreen console buffer limits (/showthread.php?tid=554)



Onscreen console buffer limits - dixonhill - 02-05-2015

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?



RE: Onscreen console buffer limits - Snarg - 02-05-2015

I found two articles that might help:


This one is AutoIt specific: http://www.autoitscript.com/forum/topic/105779-how-to-clear-or-delete-the-scite-console-output/

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

I would be interested in knowing if you get it to work.


RE: Onscreen console buffer limits - Snarg - 02-05-2015

Oh, wait! Try this:
Code:
RunWait(@COMSPEC &" /C CLS",@WORKINGDIR,@SW_HIDE)


I got that line of code from here.


RE: Onscreen console buffer limits - dixonhill - 02-06-2015

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.