Jump to content

Recommended Posts

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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...