Jump to content

Output ConsoleWrite to a GUI Control?


xCROv
 Share

Recommended Posts

Maybe it's just one of those days but I can't for the life of me figure this out. I'm wanting to have a GUI control in my autoit form that I can update with text as the script runs (Like completing tasks) and wasn't sure about the best way to go about doing this. Using labels and line breaks just updates the label.

 

Something like this.

 

GUICtrlSetData($Log, "Log output 1" & @CRLF)
        GUICtrlSetData($Log, "Log output 2" & @CRLF)
        GUICtrlSetData($Log, "Log output 3" & @CRLF)

 

Ideas would be welcome. I may end up with an edit box from this link.

 

Edited by xCROv
Link to comment
Share on other sites

  • Moderators

I typically use an Edit control, with $ES_READONLY. I then do something like this:

_GUICtrlEdit_AppendText($editProgress, @CRLF)
_GUICtrlEdit_AppendText($editProgress, @TAB & @TAB & "===============Search Complete===============")

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...