Sign in to follow this  
Followers 0
JavaScript_Freek

Chatbox GUICtrlSetData

6 posts in this topic

I'd like to know, how to set up a chatbox. Like

Like when you enter a name like Dan

and you type Hi in the input box.

Dan: Hi

you know?

I know it uses GUICtrlSetData. That's all. Anyways where is one. I'd like to know.


[center]Cookyx.com :: Simple LAN Chat[/center]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Use $something = GUICtrlCreateInput(......) then GUICtrlRead($something) then like crea

;Create the controls
$edit = GuiCtrlCreateEdit("", 40, 60, 310, 150)
$name = GuiCtrlCreateInput("", 40, 10, 100, 20)
$text = GuiCtrlCreateInput("", 40, 220, 300, 20)

;Read the inputs and input it to the edit box
GUICtrlSetData($edit, GUICtrlRead($name) & ": " & GUICtrlRead($text))
Edited by BPBNA

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I edited my post, check again. Obviously you will have to make it do that only once data has been input and they press enter or a send button or something.

Edited by BPBNA

Share this post


Link to post
Share on other sites

Still need help =\

Make a WHOLE script that i can copy and paste into SciTe and press F5 to run


[center]Cookyx.com :: Simple LAN Chat[/center]

Share this post


Link to post
Share on other sites

Can you not use my script as an example and get it working yourself? Give it a try, if you can't get it working, tell us what you need help with and I'm sure people would be happy to help you out.

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