IniRead, Edit, setting.ini, Setting, Edit
if (Edit == "ERROR")
Edit := ""
Gui, Add, Edit, w80 h20 vEdit, %Edit%
Gui, Add, Button, w80 h20 gSave, Save
Gui, Show
Return
Save:
Gui, Submit, NoHide
IniWrite, %Edit%, setting.ini, Setting, Edit
MsgBox, Successfully saved variable - %Edit%!
Return
GuiClose:
ExitApp