I want to save changed radios after click button. Those instructions doesnt work cuz in ini file there are "1" only - for every first radio of the group. Please help.
There are some fragments of the script:
GUIStartGroup()
$Radio1 = GUICtrlCreateRadio("1", 389, 88, 33, 25)
$Radio2 = GUICtrlCreateRadio("2", 429, 88, 33, 25)
$Radio3 = GUICtrlCreateRadio("3", 469, 88, 33, 25)
$Radio4 = GUICtrlCreateRadio("4", 509, 88, 33, 25)
Case $msg = $Button2
$file = filesavedialog("Select Settings File", @ScriptDir, "Ini files (*.ini)", 2, "My Settings.ini")
If not @Error Then
If GUICtrlRead($Radio1) = $GUI_CHECKED Then
IniWrite($file, "options", $Radio1, 1)
ElseIf GUICtrlRead($Radio2) = $GUI_CHECKED Then
IniWrite($file, "options", $Radio2, 1)
ElseIf GUICtrlRead($Radio3) = $GUI_CHECKED Then
IniWrite($file, "options", $Radio3, 1)
ElseIf GUICtrlRead($Radio4) = $GUI_CHECKED Then
IniWrite($file, "options", $Radio4, 1)
EndIf
EndIf