Author Topic: How do I get the client from a GUI?  (Read 517 times)

Alright so I haven't messed with client->server/server->client GUI's since now and I have to admit it's loving with my mind quite a bit.

So I have a simple GUI, text box and button.

I want the server to messageAll what is inside the text box along with the client who sent its name

I know how to get the value of the text box, but I have no idea how to get the clients name from the buttonpush function.

The gui is client-sided
Means your button does this:

commandToServer('ClickedTheButton', textfieldthing.getText());

And then on the server you have the client and the message