When you create a text edit control, you should give it a specific name, such as myTextInput for exampleThen to read what people have written in the text box, you do thisCode: [Select]%input = myTextInput.getValue();
%input = myTextInput.getValue();
%input = addinput1.getValue();$add1 = addinput1.getvalue();
Anybody?
new GuiTextEditCtrl() { profile = "GuiTextEditProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "91 93"; extent = "41 18"; minExtent = "8 2"; enabled = "1"; visible = "1"; clipToParent = "1"; command = "%input = addinput1.getValue();$add1 = addinput1.getvalue();"; maxLength = "255"; historySize = "0"; password = "0"; tabComplete = "0"; sinkAllKeyEvents = "0";
This is whats on the box where ppl can put text in.Code: [Select] new GuiTextEditCtrl() { profile = "GuiTextEditProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "91 93"; extent = "41 18"; minExtent = "8 2"; enabled = "1"; visible = "1"; clipToParent = "1"; command = "%input = addinput1.getValue();$add1 = addinput1.getvalue();"; maxLength = "255"; historySize = "0"; password = "0"; tabComplete = "0"; sinkAllKeyEvents = "0";
new GuiTextEditCtrl(addinput1) {
Also your GuiTextEditCtrl isn't actually named addinput1It has no name at allthe first line should look like thisCode: [Select] new GuiTextEditCtrl(addinput1) {
function Numbers(%this){ %first = addinput1.getValue(); echo("The user typed in " @ %first @ " in the first text box");}