Button deaktivieren aktivieren geht nicht!
[autoit]
#include
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 275, 109, 192, 114)
$btn_goNeu = GUICtrlCreateButton("Button1", 8, 40, 75, 25, $WS_GROUP)
$Combo1 = GUICtrlCreateCombo("Combo1", 8, 8, 145, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
case $Combo1
If $i=1 Then
GUICtrlSetState($btn_goNeu,$GUI_DISABLE) ; Button deaktivieren
$i=0
Else
GUICtrlSetState($btn_goNeu,$GUI_ENABLE) ; Button aktivieren
$i=1
EndIf
Case $btn_goNeu
Exit
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd