Hi,
wo ist das Problem ![]()
Spoiler anzeigen
#include <GUIConstantsEx.au3>
[/autoit] [autoit][/autoit] [autoit]GUICreate("Meine GUI mit Optionsfeldern") ; Erstellt ein GUI-Fenster welches mittig ausgerichtet wird
[/autoit] [autoit][/autoit] [autoit]$radio1 = GUICtrlCreateRadio("Optionsfeld 1", 10, 10, 120, 20)
$radio2 = GUICtrlCreateRadio("Optionsfeld 2", 10, 40, 120, 20)
$radio3 = GUICtrlCreateRadio("Optionsfeld 3", 10, 70, 120, 20)
$button = GUICtrlCreateButton("Button", 10, 100)
GUISetState() ; Zeigt das GUI-Fenster mit 2 Optionsfeldern
[/autoit] [autoit][/autoit] [autoit]While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $button
$read1 = GUICtrlRead($radio1)
$read2 = GUICtrlRead($radio2)
$read3 = GUICtrlRead($radio3)
MsgBox(0, "", $read1 & @CRLF & $read2 & @CRLF & $read3)
EndSelect
WEnd
Ist doch egal wann geprüft wird, ob der Radio Button aktiv ist