Hallo.
Ich habe ein GUI erstellt, in dem sind sieben Radio-Buttons.
Jeder Button hat einen Wert (Eins bis Sieben)
Ich möchte nun, das wenn man auf OK drückt, das er mir die Werte zusammen rechnet von den Radiobutton, die aktiviert sind und in einer Msg-Box die zusammengezählten Werte als eine Zahl ausgibt.
Habe nichts in der Hilfe gefunden, weiß daher auch gar nicht ob es überhaupt möglich ist.
Kann mir da jemand helfen?
Spoiler anzeigen
#include <GUIConstants.au3>
$Form1 = GUICreate("Form1", 534, 447, 252, 247)
$Wert1 = GUICtrlCreateRadio("Wert 1", 8, 8, 57, 25)
$Wert2 = GUICtrlCreateRadio("Wert 2", 8, 32, 57, 25)
$Wert3 = GUICtrlCreateRadio("Wert 3", 8, 56, 57, 25)
$Wert4 = GUICtrlCreateRadio("Wert 4", 8, 80, 57, 25)
$Wert5 = GUICtrlCreateRadio("Wert 5", 8, 104, 57, 25)
$Wert6 = GUICtrlCreateRadio("Wert 6", 8, 128, 57, 25)
$Wert7 = GUICtrlCreateRadio("Wert 7", 8, 152, 57, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
LG Lina