Sign in to follow this  
Followers 0

i need help its easy

2 posts in this topic

#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")

 While 1
Func _Send()
If GUICtrlRead($text) = "" Then
MsgBox(16, "Error" , "Please write a message")
    GUICtrlSetData($box ,GUICtrlRead($Text))

Func _Exit()

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...


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  
Followers 0