hey,
Im Vorraus: Ich bin neu im ganzen Prgrammier Ding, in Autoit kenn ich mich aber schon ein bisschen aus ![]()
Ich hab im Koda Form Designer ein GUi mit einem Knopf und einem Label "errschafen".
Nun möchte ich das wenn ich den Knopf drücke zu der Varibabel +1 gerechnet wird und das im GUI angezeigt wird.
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 254, 165, 192, 124)
Global $adder = 1
Global $Varbual = 0
$Label1 = GUICtrlCreateLabel($Varbual, 72, 24, 36, 17)
$Button1 = GUICtrlCreateButton("Button1", 48, 80, 137, 65)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Varbual = $Varbual + $adder
EndSwitch
WEnd
Muss ich evt. das GUI noch aktualiesieren ?
Danke im Vorraus ![]()