Vicks Posted September 26, 2006 Share Posted September 26, 2006 #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) GUICreate("Test", 186, 155, 233, 191) $box = GUICtrlCreateEdit("", 0, 0, 185, 89) $text = GUICtrlCreateInput("test", 0, 104, 121, 21) $send = GUICtrlCreateButton("send", 0, 128, 75, 25, 0) GUICtrlSetOnEvent($Send, "_Send") GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") GUISetState(@SW_SHOW) While 1 Sleep(0) WEnd Func _Send() If GUICtrlRead($text) = "" Then MsgBox(16, "Error" , "Please write a message") Else GUICtrlSetData($box ,GUICtrlRead($Text)) EndIf EndFunc Func _Exit() Exit EndFunc run this and type a few things and you'll see that it overwrites the first line but i want it to write to the second line and so on... [s]Autoit[/s] Link to comment Share on other sites More sharing options...
jvanegmond Posted September 26, 2006 Share Posted September 26, 2006 Use: GUICtrlSetData($box ,GUICtrlRead($Text)&@CRLF, 1) In stead of: GUICtrlSetData($box ,GUICtrlRead($Text)) github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now