leider reichen meine Kenntnisse nicht aus um den Fehler zu finden.
PHP Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Calculator", 243, 318, 238, 435)
$Golfstar = GUICtrlCreateGroup("", 8, 0, 225, 313)
$Distance = GUICtrlCreateLabel("Distance to flag", 24, 32, 78, 17)
$High_less_then_30y = GUICtrlCreateLabel("High less then 30y", 24, 66, 91, 17)
$High_more_then_30y = GUICtrlCreateLabel("High more then 30y", 24, 98, 96, 17)
$Wind = GUICtrlCreateLabel("Wind %", 24, 130, 40, 17)
$Temp = GUICtrlCreateLabel("Temp. +/-", 24, 162, 59, 17)
$Humidity = GUICtrlCreateLabel("Humidity %", 24, 194, 55, 17)
$Down_up = GUICtrlCreateLabel("Down/Up %", 24, 226, 62, 17)
$extra = GUICtrlCreateLabel("Extra %", 24, 258, 39, 17)
$summ = GUICtrlCreateLabel("Sum", 24, 290, 33, 17)
$Input1 = GUICtrlCreateInput("0", 128, 32, 89, 21)
$Input2 = GUICtrlCreateInput("0", 128, 64, 89, 21)
$Input3 = GUICtrlCreateInput("0", 128, 96, 89, 21)
$Input4 = GUICtrlCreateInput("0", 128, 128, 89, 21)
$Input5 = GUICtrlCreateInput("0", 128, 160, 89, 21)
$Input6 = GUICtrlCreateInput("0", 128, 192, 89, 21)
$Input7 = GUICtrlCreateInput("0", 128, 224, 89, 21)
$Input8 = GUICtrlCreateInput("0", 128, 256, 89, 21)
$Button_1 = GUICtrlCreateButton("Gimme Numbers", 128, 288, 89, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button_1
_funktion1()
EndSwitch
WEnd
$calc1 = $Input1 + $Input2 + $Input3 + $Input5
$calc2 = $Input4 + $Input6 + $Input7 + $Input8
$calc3 = $calc1 * $calc2
$calc4 = $calc3 /100
$calc5 = $calc1 - $calc4
Func _funktion1()
MsgBox(0, "Sum", "Yards to hit:" & $calc5 &)
EndFunc