The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Onscreen console buffer limits

Started by dixonhill · Feb 4, 2015

3 replies62,417 views
Feb 4, 2015#1

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?

Feb 5, 2015#3

Oh, wait! Try this:

RunWait(@COMSPEC &" /C CLS",@WORKINGDIR,@SW_HIDE)

I got that line of code from [u]here[/u].

Feb 6, 2015#4

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.

Got something to add?

Log in to post a reply.

Join the conversation