nathan546 Posted June 13, 2004 Share Posted June 13, 2004 Im trying to take a input box and take whatever text someone enters into it and save that to a config by clicking a save button. Here is what i have Func Save() IniWrite("Config.ini", "Config", "Something", $input_1) EndFunc Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 392,273,(@DesktopHeight-392)/2, (@DesktopHeight-273)/2 , 0x04CF0000) $input_1 = GUISetControl("input", "Hi", 20, 20, 70, 20) $button_1 = GUISetControl("button", "Save", 20, 50, 70, 20) GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = 0 Case $msg = $input_1 Case $msg = $button_1 Save() EndSelect WEnd Exit When i click the save button it saves as [Config] Something=3 Anyone know how to make it save as what is entered into the input box? Link to comment Share on other sites More sharing options...
Guest Guest Posted June 13, 2004 Share Posted June 13, 2004 I gave up a little bit to soon and posted on here, i forgot about needing the GuiRead so i got it to work now. Link to comment Share on other sites More sharing options...
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