Jump to content
Sign in to follow this  
Vicks

i need help its easy

Recommended Posts

Vicks

#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]

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  

×