Jump to content

Save settings to an ini?


Recommended Posts

Is this possible for a person to save settings from the GUI

like this is the things i want them to change and save:

GuiCtrlCreateTabItem("Search Amount")
GUICtrlCreateGroup ("Search Amount", 10, 30, 117, 146)
GUICtrlSetBkColor(-1,0xF7F7EF)
$TIMES = GuiCtrlCreateInput("40", 15, 48, 25, 19)
GUICtrlCreateLabel("NetBux.org", 40, 50)
GUICtrlSetBkColor(-1,0xF7F7EF)
$TIMES2 = GuiCtrlCreateInput("50", 15, 68, 25, 19)
GUICtrlCreateLabel("Pay-Pup2.com", 40, 70)
GUICtrlSetBkColor(-1,0xF7F7EF)
$TIMES3 = GuiCtrlCreateInput("30", 15, 88, 25, 19)
GUICtrlCreateLabel("Search-Pay.com", 40, 90)
GUICtrlSetBkColor(-1,0xF7F7EF)
$TIMES4 = GuiCtrlCreateInput("40", 15, 108, 25, 19)
GUICtrlCreateLabel("iBux.net", 40, 110)
GUICtrlSetBkColor(-1,0xF7F7EF)
$TIMES5 = GuiCtrlCreateInput("30", 15, 128, 25, 19)
GUICtrlCreateLabel("MoneyJet.net", 40, 130)
GUICtrlSetBkColor(-1,0xF7F7EF)
$TIMES6 = GuiCtrlCreateInput("40", 15, 148, 25, 19)
GUICtrlCreateLabel("Clickz2Cash", 40, 151)
GUICtrlSetBkColor(-1,0xF7F7EF)
GUICtrlCreateGroup ("",-99,-99,1,1) ;close group
GUICtrlSetBkColor(-1,0xF7F7EF)

GUICtrlCreateGroup ("Sleep Interval", 128, 30, 192, 146)
GUICtrlSetBkColor(-1,0xF7F7EF)
$SLEEP = GuiCtrlCreateInput("15", 140, 48, 25, 19)
GUICtrlCreateLabel("Seconds [NetBux.org]", 165, 50)
GUICtrlSetBkColor(-1,0xF7F7EF)
$SLEEP2 = GuiCtrlCreateInput("15", 140, 68, 25, 19)
GUICtrlCreateLabel("Seconds [Pay-Pup2.com]", 165, 70)
GUICtrlSetBkColor(-1,0xF7F7EF)
$SLEEP3 = GuiCtrlCreateInput("35", 140, 88, 25, 19)
GUICtrlCreateLabel("Seconds [Search-Pay.com]", 165, 90)
GUICtrlSetBkColor(-1,0xF7F7EF)
$SLEEP4 = GuiCtrlCreateInput("45", 140, 108, 25, 19)
GUICtrlCreateLabel("Seconds [iBux.net]", 165, 110)
GUICtrlSetBkColor(-1,0xF7F7EF)
$SLEEP5 = GuiCtrlCreateInput("25", 140, 128, 25, 19)
GUICtrlCreateLabel("Seconds [MoneyJet.net]", 165, 130)
GUICtrlSetBkColor(-1,0xF7F7EF)
$SLEEP6 = GuiCtrlCreateInput("20", 140, 148, 25, 19)
GUICtrlCreateLabel("Seconds [Clickz2Cash.com]", 165, 151)
GUICtrlSetBkColor(-1,0xF7F7EF)
GUICtrlCreateGroup ("",-99,-99,1,1) ;close group
Link to comment
Share on other sites

Have it so that when the users changes the settings it writes it to the ini.

$Input = Inputbox("Setting", "Enter new setting")

IniWrite("test.ini", "section", "key', $Input

Or you could have it each time they change a setting it saves it into a variabled then when you exit your program you write all the new settings to the ini file at once.

qq

Link to comment
Share on other sites

Have it so that when the users changes the settings it writes it to the ini.

$Input = Inputbox("Setting", "Enter new setting")

IniWrite("test.ini", "section", "key', $Input

Or you could have it each time they change a setting it saves it into a variabled then when you exit your program you write all the new settings to the ini file at once.

<{POST_SNAPBACK}>

Ill try this tonight.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...