Einfach $x/100 ![]()
$hGui = GUICreate("BMI-Rechner", 220, 120)
[/autoit][autoit][/autoit][autoit]$label1 = GUICtrlCreateLabel("Gewicht eingeben", 10, 20, 100, 20, 0x200)
$label2 = GUICtrlCreateLabel("Größe eingeben", 10, 50, 100, 20, 0x200)
$weight = GUICtrlCreateInput("", 110, 20, 100, 20, 0x2000)
$size = GUICtrlCreateInput("", 110, 50, 100, 20, 0x2000)
$calc = GUICtrlCreateButton("Berechnen", 70, 80, 80, 30)
[/autoit][autoit][/autoit][autoit]GUISetState()
[/autoit][autoit][/autoit][autoit]Local $msg
Do
$msg = GUIGetMsg()
If $msg = $calc Then _BMI()
Until $msg = -3
Func _BMI()
MsgBox(0, "BMI", GUICtrlRead($weight) / (GUICtrlRead($size)/100)^2)
EndFunc