also hab ja durch hilfe geschafft buttons mit Checkbox Enable und disable zu machn nur mein prob ist jetzt das ich die buttons nicht verwenden kann hab schon einiges ausprobiert aber wenn ich dann bsp button1 drücke passiert einfach nix kann mir wer helfen `? bekommt thx für ;)
hier der code:
hier der code:
Code:
#include <GUIConstantsEx.au3>
GUICreate("")
$check = GUICtrlCreateCheckbox("Enable/Disable Buttons", 10, 10, 140, 20)
$button = GUICtrlCreateButton("Button",10,50)
$button1 = GUICtrlCreateButton("Button1",10,90)
GUICtrlSetState($button,$GUI_DISABLE)
GUICtrlSetState($button1,$GUI_DISABLE)
GUISetState()
While 1
$msg = GUIGetMsg()
$read = GUICtrlRead($check)
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
If $msg = $check And $read = $GUI_CHECKED Then
GUICtrlSetState($button,$GUI_ENABLE)
GUICtrlSetState($button1,$GUI_ENABLE)
ElseIf $msg = $check And $read = $GUI_UNCHECKED Then
GUICtrlSetState($button,$GUI_DISABLE)
GUICtrlSetState($button1,$GUI_DISABLE)
EndIf
WEnd