Hallo,
ich habe dort ein kleines Problem beim Checkboxen auslesen.
Wenn Checkbox Ja und Nein aktiviert sind, dann soll er etwas anderes senden, als wenn sie einzeln ausgewählt sind.
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 151, 82, 192, 124)
$Ja = GUICtrlCreateCheckbox("Ja", 8, 16, 49, 17)
$Nein = GUICtrlCreateCheckbox("Nein", 96, 16, 49, 17)
$klick = GUICtrlCreateButton("klick", 32, 48, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $klick
If GUICtrlRead($Nein) and GUICtrlRead($Ja) = $GUI_CHECKED then
MsgBox (64, "Beides", "Sie haben beide Checkboxen aktiviert.")
EndIf
If GUICtrlRead($Ja) = $GUI_CHECKED then
MsgBox (64, "Ja", "Sie haben die Checkbox Ja aktiviert")
EndIf
If GUICtrlRead($Nein) = $GUI_CHECKED then
MsgBox (64, "Nein", "Sie haben die Checkbox Nein aktiviert")
EndIf
EndSwitch
WEnd