JavaScript_Freek Posted August 17, 2006 Posted August 17, 2006 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]
BPBNA Posted August 17, 2006 Posted August 17, 2006 (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 August 17, 2006 by BPBNA
JavaScript_Freek Posted August 17, 2006 Author Posted August 17, 2006 What would be an example script? [center]Cookyx.com :: Simple LAN Chat[/center]
BPBNA Posted August 17, 2006 Posted August 17, 2006 (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 August 17, 2006 by BPBNA
JavaScript_Freek Posted August 17, 2006 Author Posted August 17, 2006 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]
BPBNA Posted August 18, 2006 Posted August 18, 2006 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.
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