Sign in to follow this  
Followers 0
MajSlayer420

GUICreateEDit Problem

6 posts in this topic

Hello I have a edit box in my program to log events.

After about 5 hours or so , My edit box stops updating,

It stops printing the log data in the editbox.

Is this a known problem? and is there a fix?

Thanks,

MajSlayer420

Share this post


Link to post
Share on other sites



Hello I have a edit box in my program to log events.

After about 5 hours or so , My edit box stops updating,

It stops printing the log data in the editbox.

Is this a known problem? and is there a fix?

Thanks,

MajSlayer420

There is a fixed limit on how much data an edit box can hold. About 32K if I remember correctly. It's a Windows thing, not AutoIt.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

Is there a way to reset/clear the editbox so it willl continue to output data?

Thanks,

MS420

Share this post


Link to post
Share on other sites

Take a look at If...Then, StringLen and GUICtrlSetData.

Share this post


Link to post
Share on other sites

GUICtrlSetLimit() will fix your issue.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I have used this before ..try this...

Global $EditBufSize = 281474976710656, $EM_LIMITTEXT = 0x00c5

$EDIT = GUICtrlCreateEdit("Your settings go here")
GUICtrlRecvMsg($EDIT, $EM_LIMITTEXT, $EditBufSize, 0)

This should give your edit control a big enough buffer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0