andguent 0 Posted April 19, 2005 I searched around for a while and could not find the answer to this simple question. I want to append text to the bottom of a GUI input box. I want the new data on a new line. This code below is supposed to add a number every second, on a new line every time. It does add the number, but no new line/carriage return. As you can see, I tried a few different special characters in hopes that one of them would work. Any ideas would be greatly appreciated. #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) ; Change to OnEvent mode $debugwindow = GUICreate("Process Info", 200, 100) $inputMainDisplay = GUICtrlCreateInput("", 10, 10, 180, 80) GUICtrlSetState($inputMainDisplay, $GUI_DISABLE) GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") GUISetState(@SW_SHOW) Local $count = 1 While 1 Sleep(1000) ; Idle around GUICtrlSetData($inputMainDisplay, GUICtrlRead($inputMainDisplay) & " " & Chr(11) & @CR & @LF & @CRLF & $count & " ") $count = $count + 1 WEnd Func CLOSEClicked() Exit EndFunc Share this post Link to post Share on other sites
Jos 2,172 Posted April 19, 2005 #include <GUIConstants.au3> Opt("GUIOnEventMode", 1); Change to OnEvent mode $debugwindow = GUICreate("Process Info", 200, 100) $inputMainDisplay = GUICtrlCreateInput("", 10, 10, 180, 80,$ES_MULTILINE ) GUICtrlSetState($inputMainDisplay, $GUI_DISABLE) GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") GUISetState(@SW_SHOW) $count = 1 While 1 Sleep(1000); Idle around GUICtrlSetData($inputMainDisplay, GUICtrlRead($inputMainDisplay) & $count & @CRLF) $count = $count + 1 WEnd Func CLOSEClicked() Exit EndFunc SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
andguent 0 Posted April 19, 2005 That works. Thanks again. This forum continues to impress me. I guess I could have tried an edit box instead of an input box too huh. Share this post Link to post Share on other sites