Könnte mir jemand folgendes Vervollständigen ? (Ich packs nicht)
Und zwar möcht ich $Button3 mit $Button1 AN und $Butto2 AUS schalten können wobei $Button3 auch die Farbe wechselt. (Daselbe mit den Buttons 4,5 und 6.
Bisjetzt reagiert nur $Button25 eigentlich obwohl gar nicht einbunden, der nur $Button3 und 6 ausschalten soll.
Vielen Dank im voraus

bin Newbie
----------------------------------
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form
$Form1 = GUICreate("Form1", 708, 327, 502, 373)
$Button1 = GUICtrlCreateButton("On", 65, 24, 57, 25)
$Button2 = GUICtrlCreateButton("Off", 122, 24, 57, 25)
$Button3 = GUICtrlCreateButton("AUS", 179, 24, 33, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Myriad Web")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0xFF0000)
$Button4 = GUICtrlCreateButton("On", 65, 48, 57, 25)
$Button5 = GUICtrlCreateButton("Off", 122, 48, 57, 25)
$Button6 = GUICtrlCreateButton("AUS", 179, 48, 33, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Myriad Web")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0xFF0000)
$Button25 = GUICtrlCreateButton("Alle Aus schalten", 320, 56, 220, 120)
GUICtrlSetFont(-1, 20, 800, 0, "Myriad Web")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x00CF00)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$count = 1
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $button1
If $count = 1 Then
GUICtrlSetData($button3, "AN")
GUICtrlSetFont($button3, -1, 11, 800, 0, "Myriad Web")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x00CF00)
$count = 0
EndIF
Case $button2
If $count = 0 Then
GUICtrlSetData($button3, "AUS")
GUICtrlSetFont($button3, -1, 11, 800, 0, "Myriad Web")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0xFF0000)
$count = 1
EndIF
Case $GUI_EVENT_CLOSE
Exit
Exit
EndSwitch
WEnd