Jump to content

Can I actually "Fill Up" an Edit control

Recommended Posts

Hey all,

I recently tried to build a wrapper gui around some functionality that typically takes place in a cmd window.

I harnessed the stout and in and hide the cmd window and tried using an edit control to display the ins and outs B)

Anyways, it worked just fine but when left for a long time autoit would lose it's 'grip' on the stout and just not display it anymore. The cmd window was still runningin the background and doing things still, just no output reaching autoit.

My only guess at this time is that there is a limited buffer on the edit control and once it fills up that's it. No error was thrown or anything, just stopped working.

Any thoughts?

Link to post
Share on other sites

#include <GUIConstants.au3>

GUICreate("My GUI edit") ; will create a dialog box that when displayed is centered

$myedit=GUICtrlCreateEdit ("First line"& @CRLF, 176,32,121,97,$ES_AUTOVSCROLL+$WS_VSCROLL)

GUISetState ()

; will be append dont' forget 3rd parameter
GUICtrlSetData ($myedit, "Second line",1)
Sleep ( 3000 )
GUICtrlSetData ($myedit, "Start with new data","")

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs


Don't argue with an idiot; people watching may not be able to tell the difference.


Link to post
Share on other sites
This is a link to a post in a thread regarding precisely this subject, there's a code snippet for enlarging the buffer of the edit box in the post.

Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...