Hi,
Ich wollte kurz nen script erstellen das wenn man auf den button oder auf y drückt ein1 hochzählt cund dann das label so setzt. So mein bisheriger code.
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$count = 0
Func counter()
$count = $count+1
EndFunc
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("GalaxyGate Zähler", 310, 190, 192, 124)
$Label1 = GUICtrlCreateLabel($count, 32, 40, 36, 17)
$Button1 = GUICtrlCreateButton("Hochzählen", 176, 32, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Reset", 88, 104, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
counter
EndSwitch
WEnd
ich weiß jetzt grad net wo der fehler ist.