Hallo ich versuche über ein Formular das Ergebniss einer Rechnung per Buttonklick ausgeben zulassen. Leider berücksichtigt er mir nicht meine Textboxen wo liegt der fehler?
[autoit]#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Echree\Documents\Form1.kxf
$Form1 = GUICreate("Form1", 420, 205, 616, 383)
$Label1 = GUICtrlCreateLabel("Messung V1", 17, 62, 63, 17)
$zahl2 = GUICtrlCreateInput("",89, 62, 81, 21)
$Label2 = GUICtrlCreateLabel("Messung U1", 16, 29, 64, 17)
$zahl1 = GUICtrlCreateInput("", 88, 29, 81, 21)
$Label3 = GUICtrlCreateLabel("Messung W1", 16, 96, 67, 17)
$zahl3 = GUICtrlCreateInput("",88, 96, 81, 21)
$Button1 = GUICtrlCreateButton("Rechnen", 200, 16, 161, 57, $WS_GROUP)
$Pic1 = GUICtrlCreatePic("D:\16092010-Claim-klein_rgb.jpg", 40, 128, 353, 65, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsGBox(64,"Ergebniss","Ergebniss:" & round(($zahl1 + $zahl2 + $zahl3) / sqrt(3), 3))
Case $Label1
Case $Label2
Case $Label3
EndSwitch
WEnd
Als Ergebniss bekomm ich immer eine 10,392